I am using Google Collab.
I am trying to run section 09_tabular.ipynb
and starting from today I have a problem with
cont,cat = cont_cat_split(df, 1, dep_var=dep_var)
it throws the following error:
TypeError Traceback (most recent call last)
----> 1 cont,cat = cont_cat_split(df, 1, dep_var=dep_var)
/usr/local/lib/python3.6/dist-packages/numpy/core/numerictypes.py in issubdtype(arg1, arg2)
387 if not issubclass_(arg1, generic):
–> 388 arg1 = dtype(arg1).type
389 if not issubclass_(arg2, generic):
390 arg2 = dtype(arg2).type
TypeError: Cannot interpret ‘UInt32Dtype()’ as a data type
I already run this notebook before and it run fine.
Maybe somebody else also experienced such a problem?
I can manually resolve this problem by changing the data type of the saleWeek to int64, but it throws a simmilar error with ProductSize which is a “category”.