pandera icon indicating copy to clipboard operation
pandera copied to clipboard

Make `pydantic` and `typeguard` extras for pandas generic type support

Open cosmicBboy opened this issue 10 months ago • 0 comments

Currently, pydantic and typeguard are being used in pandas_engine.py to implement support for generic types via the PythonGenericType datatype: https://github.com/unionai-oss/pandera/blob/main/pandera/engines/pandas_engine.py#L1347.

Consider making this either: a soft dependency such that the types are only available if these packages are available, or adding an additional extra to pandera, i.e. pip install 'pandera[generics] or something to that effect.

cosmicBboy avatar Apr 14 '24 20:04 cosmicBboy