Skip to content
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

Serialize data objects in Schema #2202

Open
abhirupghosh opened this issue Oct 25, 2023 · 1 comment
Open

Serialize data objects in Schema #2202

abhirupghosh opened this issue Oct 25, 2023 · 1 comment
Labels

Comments

@abhirupghosh
Copy link

I am attempting to serialize and deserialize a custom object, which has one of its parameters (data)as a pandas DataFrame. Since I will be storing many of these objects and each of these objects will have a DataFrame with a different structure, how should I go about creating a Marshmallow Schema for the custom object?

Essentially, I want to be able to store the dataframe as a part of the schema but do not want to create a new Schema just for the data field in my object.

@deckar01
Copy link
Member

Have you looked at the Dict field or unknown handling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants