-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_msgpack returns a List of length Zero #13362
Comments
pls show |
is this the same as #12905 ? |
Hi @jreback, I encoded / decoded with 0.18.1 This is the output of df.info() df.info() This my code type(df2) len(df) I don't get errors from reading or writing, I just get a LIst instead of the Data Frame I saved. |
no idea - it might be too big to save in this format |
you'll have to experiment and show a reproducible example. |
I agree with you with the analysis in 12905, the size of the data frame to write at once cannot be larger than 4GB. Therefore, I applied your suggestion of slicing the DF into a dictionary.
Then, my 10.7GB CSV file was converted into a 7.0 GB msgpack with a reduction of 86% of loading time. I also find advantageous this solution to slice the data for partial readings. Thanks |
I have a very large Data Frame that takes 10.7 GB when serialized with "to_csv", but it takes 6.7 GB when using "to_msgpack". When reading the serialized file with "read_msgpack", I get a type List of length Zero.
The same IO process on 200 MB Data Frame works perfectly, i.e. a Data Frame is returned by the function "read_msgpack".
Code Sample, a copy-pastable example if possible
type(df) -> pd.DataFrame
len(df) -> 39227674
df.to_msgpack('foo.msg')
df2 = pd.read_msgpack('foo.msg')
type(df2) -> List
len(df2) -> 0
Expected Output
type(df2) -> pd.DataFrame
len(df2) -> 39227674
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-49-virtual
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.1.2
pip: 8.1.2
setuptools: 1.4
Cython: 0.23.4
numpy: 1.11.0
scipy: 0.17.0
statsmodels: None
xarray: None
IPython: 4.0.0
sphinx: None
patsy: None
The text was updated successfully, but these errors were encountered: