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
However, often I cant make a DataFrameModel if the output schema depends on some runtime parameters - and thus forced to use DataFrameSchema but sadly cant use the nice features in the function above (as far as im aware).
I much prefer DataFrameModel over DataFrameSchema for a few reasons:
I like being able to do type hinting as well as being able to dynamically access the column names so hard coding strings is a thing of the past
for example:
However, often I cant make a DataFrameModel if the output schema depends on some runtime parameters - and thus forced to use DataFrameSchema but sadly cant use the nice features in the function above (as far as im aware).
Does anyone any workarounds?
Something like https://docs.python.org/3/library/dataclasses.html#dataclasses.make_dataclass?
The text was updated successfully, but these errors were encountered: