We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example an xarray.DataArray.
xarray.DataArray
In [21]: import xarray as xr In [22]: import pandas as pd; import numpy as np In [23]: arr = xr.DataArray(pd.date_range('2000', periods=4).to_numpy()) In [24]: pd.core.arrays.datetimes.sequence_to_dt64ns(arr) --------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-24-fd995f4e5bef> in <module> ----> 1 pd.core.arrays.datetimes.sequence_to_dt64ns(arr) ~/sandbox/pandas/pandas/core/arrays/datetimes.py in sequence_to_dt64ns(data, dtype, copy, tz, dayfirst, yearfirst, ambiguous) 1712 result = result.copy() 1713 -> 1714 assert isinstance(result, np.ndarray), type(result) 1715 assert result.dtype == 'M8[ns]', result.dtype 1716 AssertionError: <class 'xarray.core.dataarray.DataArray'>
A user would hit this via DatetimeIndex(arr)
DatetimeIndex(arr)
The text was updated successfully, but these errors were encountered:
MAINT: Pin pandas to >=1.3
c43eb5d
This pin is needed to avoid this bug: pandas-dev/pandas#24539
Successfully merging a pull request may close this issue.
For example an
xarray.DataArray
.A user would hit this via
DatetimeIndex(arr)
The text was updated successfully, but these errors were encountered: