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
Hi, folks. I've just got a problem when trying to serialize a pandas DataFrame.
Python version: 3.7.5 jsonpickle version: 1.4.1
My df, here called dataset, has this index:
>>> dataset.index DatetimeIndex(['2020-01-01 00:00:00+00:00', '2020-01-01 01:00:00+00:00', '2020-01-01 02:00:00+00:00', '2020-01-01 03:00:00+00:00', '2020-01-01 04:00:00+00:00', '2020-01-01 05:00:00+00:00', '2020-01-01 06:00:00+00:00', '2020-01-01 07:00:00+00:00', '2020-01-01 08:00:00+00:00', '2020-01-01 09:00:00+00:00', ... '2020-01-30 15:00:00+00:00', '2020-01-30 16:00:00+00:00', '2020-01-30 17:00:00+00:00', '2020-01-30 18:00:00+00:00', '2020-01-30 19:00:00+00:00', '2020-01-30 20:00:00+00:00', '2020-01-30 21:00:00+00:00', '2020-01-30 22:00:00+00:00', '2020-01-30 23:00:00+00:00', '2020-01-31 00:00:00+00:00'], dtype='datetime64[ns, UTC]', length=721, freq='<DateOffset: seconds=3600>')
Now, look to this result, paying particular attention to freq:
jsonpickle.loads(jsonpickle.dumps(dataset)).index DatetimeIndex(['2020-01-01 00:00:00+00:00', '2020-01-01 01:00:00+00:00', '2020-01-01 02:00:00+00:00', '2020-01-01 03:00:00+00:00', '2020-01-01 04:00:00+00:00', '2020-01-01 05:00:00+00:00', '2020-01-01 06:00:00+00:00', '2020-01-01 07:00:00+00:00', '2020-01-01 08:00:00+00:00', '2020-01-01 09:00:00+00:00', ... '2020-01-30 15:00:00+00:00', '2020-01-30 16:00:00+00:00', '2020-01-30 17:00:00+00:00', '2020-01-30 18:00:00+00:00', '2020-01-30 19:00:00+00:00', '2020-01-30 20:00:00+00:00', '2020-01-30 21:00:00+00:00', '2020-01-30 22:00:00+00:00', '2020-01-30 23:00:00+00:00', '2020-01-31 00:00:00+00:00'], dtype='datetime64[ns, UTC]', length=721, freq=None)
So, it seems like the package is not serializing or deserializing the whole object.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, folks. I've just got a problem when trying to serialize a pandas DataFrame.
Python version: 3.7.5
jsonpickle version: 1.4.1
My df, here called dataset, has this index:
Now, look to this result, paying particular attention to freq:
So, it seems like the package is not serializing or deserializing the whole object.
Thank you in advance.
The text was updated successfully, but these errors were encountered: