-
-
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
groupby reduce with flox - any() got an unexpected keyword argument 'skipna' #8819
Closed
5 tasks done
Closed
5 tasks done
Labels
Comments
claytharrison
added
bug
needs triage
Issue that has not been reviewed by xarray team member
labels
Mar 11, 2024
Which version of flox is installed? In the Environment, I see |
Apologies, flox is 0.9.2. Looks like I ran |
Yes, I can repro. CC @dcherian |
max-sixty
removed
the
needs triage
Issue that has not been reviewed by xarray team member
label
Mar 12, 2024
dcherian
added a commit
to xarray-contrib/flox
that referenced
this issue
Mar 13, 2024
dcherian
added a commit
to xarray-contrib/flox
that referenced
this issue
Mar 13, 2024
dcherian
added a commit
to xarray-contrib/flox
that referenced
this issue
Mar 13, 2024
dcherian
added a commit
to xarray-contrib/flox
that referenced
this issue
Mar 13, 2024
* Fix direct reductions of Xarray objects Closes pydata/xarray#8819 * Fix doctest
Thanks @claytharrison Should be fixed on flox 0.9.3. |
Thank you for the quick response! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
When using
xarray.DataArray.groupby
with flox installed andany
orall
as the aggregator (and a different dimension forany
than I use for grouping) I get the errorany()
(orall()
)got an unexpected keyword argument 'skipna'
It seems that, while flox expects any aggregator to accept a
skipna
argument,any
andall
do not yet. I'm not sure if this is more xarray's problem or flox's (or my own?), but I've put the issue in here simply because it's more active.What did you expect to happen?
Running the same code (below) without flox installed returns an expected result:
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment
INSTALLED VERSIONS
commit: None
python: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0]
python-bits: 64
OS: Linux
OS-release: 5.15.0-92-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: C.UTF-8
LANG: en_US.UTF-8
LOCALE: ('C', 'UTF-8')
libhdf5: None
libnetcdf: None
xarray: 2024.2.0
pandas: 2.2.1
numpy: 1.26.4
scipy: 1.12.0
netCDF4: None
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: None
nc_time_axis: None
iris: None
bottleneck: None
dask: None
distributed: None
matplotlib: None
cartopy: None
seaborn: None
numbagg: None
fsspec: None
cupy: None
pint: None
sparse: None
flox: 0.9.2
numpy_groupies: 0.10.2
setuptools: 69.1.1
pip: 24.0
conda: None
pytest: None
mypy: None
IPython: None
sphinx: None
The text was updated successfully, but these errors were encountered: