BUG: dtype datetime64[ns, UTC]
not interpreted by issubdtype
#28946
Labels
Content-Length: 234173 | pFad | https://github.com/numpy/numpy/issues/28946
95datetime64[ns, UTC]
not interpreted by issubdtype
#28946
Fetched URL: https://github.com/numpy/numpy/issues/28946
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
This is more or less the same as reported in #19187 and allegedly fixed. But it does still occur in the version combinations I tested with (see below).
Reproduce the code example:
Error message:
Python and NumPy Versions:
Tested with the following combinations:
pandas 1.2.3, 1.2.4. 1.2.5, (current when #19187 was reported) and 2.2.3
Runtime Environment:
Context for the issue:
I am converting data and depending on if it's a numeric type or not (hence the use of
np.issubdtype(..., np.number)
) I need to treat the conversion differently.I can of course work around it by checking beforehand if it's a datetime, but that would be kind of ugly and against any clean code principles.
The text was updated successfully, but these errors were encountered: