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
There appears to be either a typo (min instead of np.nanmin) or a missing import in the new _datetime_nanmin function.
min
np.nanmin
_datetime_nanmin
Specifically, line 363: array = min(array, skipna=True)
array = min(array, skipna=True)
Always results in: TypeError: 'skipna' is an invalid keyword argument for min()
TypeError: 'skipna' is an invalid keyword argument for min()
Permalink: https://github.com/xarray-contrib/flox/blob/4f6164f74a657d95f795c374e31e91a7e7643e9f/flox/xrutils.py#L363C5-L363C36
The text was updated successfully, but these errors were encountered:
dang it. Can you provide an example please? Clearly the current test suite isn't good enough.
Sorry, something went wrong.
This is failing for me with flox v0.9.14 and xarray v2024.9.0.
flox v0.9.14
xarray v2024.9.0
ds = xr.tutorial.open_dataset("air_temperature") ds.time.resample(time="D").count()
EDIT: An example using flox directly:
flox
import flox import numpy as np array = np.array([np.datetime64("2000-01-01"), np.datetime64("2000-01-02"), np.datetime64("2000-01-03")]) by = [np.array([0, 0, 1])] flox.groupby_reduce(array, by, func="nanmin")
No branches or pull requests
There appears to be either a typo (
min
instead ofnp.nanmin
) or a missing import in the new_datetime_nanmin
function.Specifically, line 363:
array = min(array, skipna=True)
Always results in:
TypeError: 'skipna' is an invalid keyword argument for min()
Permalink:
https://github.com/xarray-contrib/flox/blob/4f6164f74a657d95f795c374e31e91a7e7643e9f/flox/xrutils.py#L363C5-L363C36
The text was updated successfully, but these errors were encountered: