-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
pandas_dtype should be support built-in collection types like list, dict, set #260
Comments
Has this been in consideration? |
#369 has been solved, what about this feature ? |
Looks like #369 is merged. What's the status of this? |
@anantzoid current status is Basically would require:
This would basically use |
Note: based on this thread we also want the pandera datatype system to handle unhashable types (sets, lists) |
Is your feature request related to a problem? Please describe.
Pandas does not natively support a dtype representation for collections like lists, dicts, sets, and iterables. For these types the corresponding pandas data type is
object
. This may obfuscate the actual type of a column for users that rely on these types being present in a particular column.Describe the solution you'd like
Extend the
PandasDtype
representation and support forlist
,dict
, andset
types.SeriesSchemaBase.validate
It may be even nicer to support typing like:
List[int]
Dict[str, int]
And for
pandera
to verify types like this.The text was updated successfully, but these errors were encountered: