-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dropna() for a Series indexed by a CFTimeIndex #2688
Comments
The issue seems to stem from the fact that the In the case of a DatetimeIndex,
This would seem to offer a simple fix for us for @shoyer do you think you might have a recommendation here? Does either one of those options make sense, or might there be an alternative? |
@spencerkclark Ugh, this part of pandas is a real mess. Probably the easiest option would be to support boolean indexers directly in |
Good idea -- I'll see what I can do. |
Code Sample, a copy-pastable example if possible
Currently something like the following raises an error:
Problem description
We currently rely on this in the resampling logic within xarray for a Series indexed by a DatetimeIndex:
xarray/xarray/core/groupby.py
Line 268 in dc87dea
It would be nice if we could do the same with a Series indexed by a CFTimeIndex, e.g. in #2593.
Expected Output
Output of
xr.show_versions()
xarray: 0.10.9+117.g80914e0.dirty
pandas: 0.24.0.dev0+1332.g5d134ec
numpy: 1.15.4
scipy: 1.1.0
netCDF4: 1.4.2
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: 1.0.3.4
PseudonetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: None
cyordereddict: None
dask: 1.0.0
distributed: 1.25.2
matplotlib: 3.0.2
cartopy: None
seaborn: 0.9.0
setuptools: 40.6.3
pip: 18.1
conda: None
pytest: 3.10.1
IPython: 7.2.0
sphinx: None
The text was updated successfully, but these errors were encountered: