Split off DataFrame serde functionality from read_json
/DataFrame.write_json
#14526
Labels
A-api
Area: changes to the public API
A-serde
Area: seralization and deserialization
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
python
Related to Python Polars
Milestone
These two functions currently do double duty: they read/write generic JSON data, but they can also read/write a serialized DataFrame, including bit settings and data types.
I propose we add a
DataFrame.serialize
that does whatDataFrame.write_json(pretty=False, row_oriented=False)
currently does.DataFrame.write_json
will remain and behave likerow_oriented=True
.Similarly, a new classmethod
DataFrame.deserialize
is added for reading serialized DataFrames, andread_json
will only read generic row oriented JSON data.Thoughts?
The text was updated successfully, but these errors were encountered: