dylan-profiler / visions

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

E TypeError: data type 'UInt32' not understood #162

Closed sbrugman closed 3 years ago

sbrugman commented 3 years ago
tests/unit/test_typeset_default.py:23: in <module>
    series = get_series()
/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/visions/test/series.py:27: in get_series
    pd.Series(np.array([1, 2, 3, 4], dtype="UInt32"), name="pd_uint32"),
E   TypeError: data type 'UInt32' not understood

The dtype is specified in np.array, however it is a pandas' type:

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

(breaking tests in pandas-profiling)