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
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
Thanks for that project reconciling Data modelling and validation using Pydantic and Data Transformation using Polars. I think your approach to reconcile those worlds is really interesting ! Kudos 💯
You started to implement APIs for generating examples (Fake data) based on the type defined in the Pydantic model. This is convenient but I think we might go further defining in the pt.Field an attribute example_factory we can pass to generate sample data based on a Factory (similar to the default_factory introduced in Pydantic)
With an example it's probably better to understand:
Hi @JakobGM,
Thanks for that project reconciling Data modelling and validation using Pydantic and Data Transformation using Polars. I think your approach to reconcile those worlds is really interesting ! Kudos 💯
You started to implement APIs for generating examples (Fake data) based on the type defined in the Pydantic model. This is convenient but I think we might go further defining in the
pt.Field
an attributeexample_factory
we can pass to generate sample data based on a Factory (similar to thedefault_factory
introduced in Pydantic)With an example it's probably better to understand:
Here I'm using mimesis as the factory but we can use Faker as well.
Once we can define an
example_factory
perField
we might imagine to enrich theexamples
API to generate fake data in bulk:Obviously, we should continue support the existing
examples
API (passing the data to populate the dataframe):Let me know what you think about that design proposal.
Nicolas
The text was updated successfully, but these errors were encountered: