Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not interpret np.datetime types #11

Open
ds-noahdolev opened this issue Aug 19, 2021 · 1 comment
Open

Can not interpret np.datetime types #11

ds-noahdolev opened this issue Aug 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ds-noahdolev
Copy link

---------------------------------------------------------------------------
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
@CedricFR CedricFR added the bug Something isn't working label Jan 3, 2022
@yunrou-eh
Copy link

I really want to use this repo but I wonder will the repo be supported continuously?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants