{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/9266","labels_url":"https://api.github.com/repos/pydata/pandas/issues/9266/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/9266/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/9266/events","html_url":"https://github.com/pydata/pandas/issues/9266","id":54541329,"number":9266,"title":"uin8 should be uint8 in io/parsers.py","user":{"login":"rmorgans","id":2200240,"avatar_url":"https://avatars.githubusercontent.com/u/2200240?v=3","gravatar_id":"","url":"https://api.github.com/users/rmorgans","html_url":"https://github.com/rmorgans","followers_url":"https://api.github.com/users/rmorgans/followers","following_url":"https://api.github.com/users/rmorgans/following{/other_user}","gists_url":"https://api.github.com/users/rmorgans/gists{/gist_id}","starred_url":"https://api.github.com/users/rmorgans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmorgans/subscriptions","organizations_url":"https://api.github.com/users/rmorgans/orgs","repos_url":"https://api.github.com/users/rmorgans/repos","events_url":"https://api.github.com/users/rmorgans/events{/privacy}","received_events_url":"https://api.github.com/users/rmorgans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/pydata/pandas/labels/CSV","name":"CSV","color":"5319e7"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Dtypes","name":"Dtypes","color":"e102d8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Good+as+first+PR","name":"Good as first PR","color":"e1aa44"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/25","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/25/labels","id":569113,"number":25,"title":"0.16.0","description":"after 0.15 of course!","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":898,"closed_issues":161,"state":"open","created_at":"2014-02-14T03:31:22Z","updated_at":"2015-01-18T13:24:08Z","due_on":"2015-02-28T08:00:00Z","closed_at":null},"comments":3,"created_at":"2015-01-16T05:33:51Z","updated_at":"2015-01-18T15:50:56Z","closed_at":null,"body":"while using read_fwf I had a bug that had this line from parsers.py\r\n\r\nhttps://github.com/pydata/pandas/blob/072e40b0b5beab36c2adda9e0bcbb26755e1928f/pandas/io/parsers.py#L989\r\n\r\nin which there is a np.uin8 which I'm pretty sure should be a np.uint8\r\n\r\napologise if this has already been submitted - I did a search on uin8 and only got the offending line in the code.\r\n\r\nI just fixed on my arch source code to keep working on my problem (I'm an engineer not a software guy!). I will try and find time for a patch and test (I failed on my last one)\r\n\r\nCHeers\r\n\r\nRick"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/70413090","html_url":"https://github.com/pydata/pandas/issues/9266#issuecomment-70413090","issue_url":"https://api.github.com/repos/pydata/pandas/issues/9266","id":70413090,"user":{"login":"rmorgans","id":2200240,"avatar_url":"https://avatars.githubusercontent.com/u/2200240?v=3","gravatar_id":"","url":"https://api.github.com/users/rmorgans","html_url":"https://github.com/rmorgans","followers_url":"https://api.github.com/users/rmorgans/followers","following_url":"https://api.github.com/users/rmorgans/following{/other_user}","gists_url":"https://api.github.com/users/rmorgans/gists{/gist_id}","starred_url":"https://api.github.com/users/rmorgans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmorgans/subscriptions","organizations_url":"https://api.github.com/users/rmorgans/orgs","repos_url":"https://api.github.com/users/rmorgans/repos","events_url":"https://api.github.com/users/rmorgans/events{/privacy}","received_events_url":"https://api.github.com/users/rmorgans/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T15:50:56Z","updated_at":"2015-01-18T15:50:56Z","body":"```python\r\nimport pandas as pd\r\nprint(pd.show_versions())\r\nwith open('test.txt','w') as f:\r\n    f.write(\r\n\"\"\"1421302964.213420    PRI=3 PGN=0xef00      DST=0x17 SRC=0x28    04 154 00 00 00 00 00 127\r\n1421302964.226776    PRI=6 PGN=0xf002               SRC=0x47    243 00 00 255 247 00 00 71\"\"\"\r\n    )\r\nd=pd.read_fwf('test.txt',\r\n              colspecs=[(0,17),(25,26),(33,37),(49,51),(58,62),(63,1000)],\r\n              names=['time','pri','pgn','dst','src','data'],\r\n              converters={'pgn':lambda x: int(x,16),\r\n                          'src':lambda x: int(x,16),\r\n                          'dst':lambda x: int(x,16),\r\n                          'data':lambda x: len(x.split(' '))},\r\n              index_col='time')\r\n```\r\n\r\nrunning this gives\r\n\r\n```bash\r\npython test_pandas_uin8_bug.py\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.4.2.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 3.14.28-1-lts\r\nmachine: x86_64\r\nprocessor:\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_AU.UTF-8\r\npandas: 0.15.2\r\nnose: 1.3.4\r\nCython: 0.21.2\r\nnumpy: 1.9.1\r\nscipy: 0.15.0\r\nstatsmodels: 0.6.1\r\nIPython: 2.3.1\r\nsphinx: 1.2.3\r\npatsy: 0.3.0\r\ndateutil: 2.4.0\r\npytz: 2014.10\r\nbottleneck: 0.8.0\r\ntables: 3.1.1\r\nnumexpr: 2.4\r\nmatplotlib: 1.4.2\r\nopenpyxl: 2.1.4\r\nxlrd: 0.9.3\r\nxlwt: None\r\nxlsxwriter: 0.6.5\r\nlxml: 3.4.1\r\nbs4: None\r\nhtml5lib: 0.999\r\nhttplib2: None\r\napiclient: None\r\nrpy2: None\r\nsqlalchemy: 0.9.8\r\npymysql: None\r\npsycopg2: 2.5.4 (dt dec pq3 ext)\r\nNone\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 987,\r\nin _convert_to_ndarrays\r\n    values = lib.map_infer(values, conv_f)\r\n  File \"pandas/src/inference.pyx\", line 1046, in pandas.lib.map_infer\r\n(pandas/lib.c:57158)\r\n  File \"test_pandas_uin8_bug.py\", line 13, in <lambda>\r\n    'dst':lambda x: int(x,16),\r\nValueError: invalid literal for int() with base 16: ''\r\nDuring handling of the above exception, another exception occurred:\r\nTraceback (most recent call last):\r\n  File \"test_pandas_uin8_bug.py\", line 15, in <module>\r\n    index_col='time')\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 496,\r\nin read_fwf\r\n    return _read(filepath_or_buffer, kwds)\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 251,\r\nin _read\r\n    return parser.read()\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 710,\r\nin read\r\n    ret = self._engine.read(nrows)\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 1563,\r\nin read\r\n    data = self._convert_data(data)\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 1600,\r\nin _convert_data\r\n    self.verbose, clean_conv)\r\n  File \"/usr/lib/python3.4/site-packages/pandas/io/parsers.py\", line 989,\r\nin _convert_to_ndarrays\r\n    mask = lib.ismember(values, na_values).view(np.uin8)\r\nAttributeError: 'module' object has no attribute 'uin8'\r\n```\r\n"}}