We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When decoding a Pandas Dataframe which contains a list value, it is being decoded as a string.
import jsonpickle import jsonpickle.ext.pandas as jsonpickle_pandas jsonpickle_pandas.register_handlers() df = pd.DataFrame({'col1': [[1, 2, 3], ['a', 'b', 'c']]}) assert type(df['col1'].iloc[0]) == list data = jsonpickle.encode(df) result = jsonpickle.decode(data) assert type(result['col1'].iloc[0]) == list # AssertionError: assert <class 'str'> == <class 'list'>
The text was updated successfully, but these errors were encountered:
I am new to open source contribution, but I've worked with both jsonpickle and pandas in the past and I'd like to try to tackle this issue.
Sorry, something went wrong.
No branches or pull requests
When decoding a Pandas Dataframe which contains a list value, it is being decoded as a string.
The text was updated successfully, but these errors were encountered: