dylan-profiler / visions

Type System for Data Analysis in Python
https://dylan-profiler.github.io/visions/visions/getting_started/usage/types.html
Other
206 stars 19 forks source link

TypeError: data type 'Bool' not understood #164

Closed sbrugman closed 3 years ago

sbrugman commented 3 years ago
    pd.Series([True, False, None], name="nullable_bool_series", dtype="Bool"),
/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/pandas/core/series.py:257: in __init__
    dtype = self._validate_dtype(dtype)
/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/pandas/core/generic.py:344: in _validate_dtype
    dtype = pandas_dtype(dtype)
/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/pandas/core/dtypes/common.py:1799: in pandas_dtype
    npdtype = np.dtype(dtype)
E   TypeError: data type 'Bool' not understood

Bool not supported in pandas >= 1 (should be "boolean")

https://github.com/dylan-profiler/visions/blob/develop/src/visions/backends/pandas/sequences.py#L14