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
Fails for multilevel columns pandas DataFrames #346
Comments
I just did a pull request. |
Closed
davvid
added a commit
to davvid/jsonpickle
that referenced
this issue
Jan 31, 2021
ujson is needed in order to pass the pandas tests, so add it to the general "testing" section. We should work to eliminate this. ujson is now fully python3 compatible and does not need to be blocked on python3.8 anymore. Related-to: jsonpickle#346 jsonpickle#347 Signed-off-by: David Aguilar <davvid@gmail.com>
davvid
added a commit
to davvid/jsonpickle
that referenced
this issue
Jan 31, 2021
The ujson module was narrowed down as the reason why the tests were passing on python2 and failing on newer python3 versions. Re-enable the multilevel columns test now that ujson is present. Related-to: jsonpickle#346 jsonpickle#347 Signed-off-by: David Aguilar <davvid@gmail.com>
davvid
added a commit
to davvid/jsonpickle
that referenced
this issue
Jan 31, 2021
Flatten the dtypes meta dictionary before handing it off to the backend to ensure that special types, such as tuples in dicts, are handled properly. Related-to: jsonpickle#346 jsonpickle#347 Signed-off-by: David Aguilar <davvid@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jsonpickle does not support multilevel columns pandas DataFrames.
Here is an example that fails. As you can see, the multiindex is supported, not the multilevel columns.
Here is a modification of pandas.py that seems to fix the issue. I am new to git so I need to figure out how to make a clean pull request. I ll try to add an appropriate unit test.
The text was updated successfully, but these errors were encountered: