You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandas supports a json serialization that's quite compact compared to the classic list of dict one.
This may be useful when sending dataframe via api calls.
Description
Pandas supports a json serialization that's quite compact compared to the classic list of dict one.
This may be useful when sending dataframe via api calls.
Example:
The above prints
Since polars has no index, it could output just columns and data.
Note that data, a bit unfortunately, is row-major, not column-major.
While using
to_pandas()
to get a pandas dataframe is an option, it's usually quite slow, and seems a waste to do that just to then serialize it again.The text was updated successfully, but these errors were encountered: