Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
read_msgpack returns garbage for non-existing files in python2 #15296
Code Sample, a copy-pastable example if possible
In : import pandas as pd In : pd.__version__ Out: u'0.19.2' In : pd.read_msgpack('/tmp/bla.txt') Out: [47, 116, 109, 112, 47, 98, 108, 97, 46, 116, 120, 116]
That file does not exist.
The same code with the same version on python 3 correctly raises an exception.
Reading a non existing file returns a list of integers instead of failing if pandas is used in python 2. This makes detecting error quite hard.
I recall this being fixed a little while back. Are you sure you are running with 0.19.2?
ahh, that is possible (must not be well tested)
want to add a test and fix?
I think we are doing a better job of this now-a-days in things like
yeah I see this doesn't use