Niels Bantilan
Niels Bantilan
@xvr-hlt dealing with null with the default numpy types is a pain, I'd recommend using the pandas-native nullable dtype: - https://pandas.pydata.org/docs/user_guide/boolean.html - https://pandas.pydata.org/docs/reference/api/pandas.BooleanDtype.html#pandas.BooleanDtype pandera's design choice is to delegate behavior...
If you want nullable bools, use the `pd.BooleanDtype` type or `"boolean"` string alias. https://pandas.pydata.org/docs/reference/api/pandas.BooleanDtype.html#pandas.BooleanDtype Pandera adopts the dtype semantics of the underlying dataframe library, so using `bool` uses the numpy...
> For an pd.Int64Dtype column, Pandera accepts an int annotation This is a bug. This should raise an error > For a pd.BooleanDtype column, Pandera does not accept a bool...
Looking into this... basically need to do the following: - use `typing.overload` on the following methods: - `validate`: https://github.com/unionai-oss/pandera/blob/main/pandera/model.py#L249-L267 - `__new__`: https://github.com/unionai-oss/pandera/blob/main/pandera/model.py#L156-L159 - `example`: https://github.com/unionai-oss/pandera/blob/main/pandera/model.py#L276-L285 - For `example`, will need...
Great @lorenzo-w ! The issue's been around for a while, so didn't want it to fall through the cracks again. Let me know if you need any help, check out...
Thanks for the ping @Girmii . This PR should address this issue: https://github.com/unionai-oss/pandera/pull/1450, just need to go in and resolve the merge conflicts
Looks like there's a bug in the example code: ```python class MySchema(pandera.DataFrameModel): col: Series[int] ``` it should be `col: Series[int]`, not `col = Series[int]` The assertion passes when I run...
Yep! It's still valid
the ci error looks odd: ``` ImportError while loading conftest '/home/runner/work/pandera/pandera/tests/core/conftest.py'. tests/core/conftest.py:4: in from tests.core.checks_fixtures import ( tests/core/checks_fixtures.py:9: in import pandera as pa pandera/__init__.py:26: in from pandera.api.pandas.array import SeriesSchema pandera/api/pandas/array.py:15:...
btw @g-as I just merged https://github.com/unionai-oss/pandera/pull/1916, which does away with the need for maintaining `ci` and `dev` requirements files. Also migrate to using `uv` as preferred package manager for development.