dataenforce
dataenforce copied to clipboard
Can not interpret np.datetime types
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-f00935f5c253> in <module>
/opt/Anaconda3/envs/basic_ml/lib/python3.8/site-packages/dataenforce/__init__.py in wrapper(*args, **kwargs)
45 dtypes = dict(value.dtypes)
46 for colname, dt in hint.dtypes.items():
---> 47 if not np.issubdtype(dtypes[colname], np.dtype(dt)):
48 raise TypeError("%s is not a subtype of %s for column %s" % (dtypes[colname], dt, colname))
49 return f(*args, **kwargs)
/opt/Anaconda3/envs/basic_ml/lib/python3.8/site-packages/numpy/core/numerictypes.py in issubdtype(arg1, arg2)
417 """
418 if not issubclass_(arg1, generic):
--> 419 arg1 = dtype(arg1).type
420 if not issubclass_(arg2, generic):
421 arg2 = dtype(arg2).type
TypeError: Cannot interpret 'datetime64[ns, UTC]' as a data type
I really want to use this repo but I wonder will the repo be supported continuously?