You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jsignell Happy to help with this if needed, or for a review (feel free to ping me). It looks like the up to now numeric_only=True by default in many pandas.core.groupby.GroupBy.operation, but this will not be the case moving forward.
EValueError: Metadatainferencefailedin`dropna`.
EEYouhavesuppliedacustomfunctionandDaskisunabletoEdeterminethe type ofoutputthatthatfunctionreturns.
EEToresolvethispleaseprovideameta=keyword.
EThedocstringoftheDaskfunctionyouranshouldhavemoreinformation.
EEOriginalerrorisbelow:
E------------------------ETypeError('You cannot set both the how and thresh arguments at the same time.')
EETraceback:
E---------EFile"/home/runner/work/dask/dask/dask/dataframe/utils.py", line182, inraise_on_meta_errorEyieldEFile"/home/runner/work/dask/dask/dask/dataframe/core.py", line6406, in_emulateEreturnfunc(*_extract_meta(args, True), **_extract_meta(kwargs, True))
EFile"/home/runner/work/dask/dask/dask/utils.py", line1070, in__call__Ereturngetattr(__obj, self.method)(*args, **kwargs)
EFile"/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pandas/util/_decorators.py", line314, inwrapperEreturnfunc(*args, **kwargs)
EFile"/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pandas/core/frame.py", line6530, indropnaEraiseTypeError(
dask/dataframe/utils.py:203: ValueError
Unrelated, but it looks like the upstream workflow has been failing to update the link in the opened issue since we bumped to actions/github-script@v6; might be worth dropping back down to v3 for the time being to unblock that workflow unless it's immediately obvious what the issue there is.
The additional failing tests are:
FAILED dask/tests/test_cli.py::test_register_command_ep - AttributeError: module 'importlib' has no attribute 'metadata'
FAILED dask/tests/test_cli.py::test_repeated_name_registration_warn - AttributeError: module 'importlib' has no attribute 'metadata'
So thinking they might be related to the test_entry_points failure?
Unrelated, but it looks like the upstream workflow has been failing to update the link in the opened issue since we bumped to actions/github-script@v6;
Ah, thanks for pointing that out. #9602 might fix that
So thinking they might be related to the test_entry_points failure?
Yeah, I suspect all those importlib-related failures are from the same underlying cause
Digging in more, it looks like the scipy failure is cropping up due to changes introduced in scipy/scipy#16835, which changes the expected input shape of popmean for ttest_1samp, as well as adding some additional information to the returned object; I'm not too familiar with the scipy stats functions, so it seems like it might take some non-trivial refactoring of our ttest_1samp to get the behavior consistent with scipy 1.10.
The cause of the importlib failures is a little hard to track down, as it seems like some test being run before test_cli.py and test_compatibility.py is breaking importlib such that we can't import importlib.metadata as expected; my first guess was the S3 tests since those use moto which depends on importlib_metadata, but running those first doesn't seem to reproduce.
After running through the entire test suite to reproduce, I notice that from importlib import metadata still seems to work, so a short term unblocker could be to use that import style instead in the relevant places.
After running through the entire test suite to reproduce, I notice that from importlib import metadata still seems to work, so a short term unblocker could be to use that import style instead in the relevant places.
Hrm, that's strange but not an unreasonable change if it gets things passing. Would you mind pushing up a PR for this?
#9499 is the remaining upstream failure. That test was temporarily xfailed in #9670 in order to get our upstream CI build passing. I'm going to go ahead and close this issue so that when a new upstream test failure pops up, a new issue will be opened (which we're more likely to see). Thanks all!
Activity
jsignell commentedon Jun 22, 2022
I am going to start taking a look as these.
ncclementi commentedon Jun 23, 2022
@jsignell Happy to help with this if needed, or for a review (feel free to ping me). It looks like the up to now
numeric_only=Trueby default in manypandas.core.groupby.GroupBy.operation, but this will not be the case moving forward.pavithraes commentedon Jul 1, 2022
Thanks, @ncclementi! For reference, here are the deprecation docs: https://pandas.pydata.org/docs/dev/whatsnew/v1.5.0.html#numeric-only-default-value
The fix for this may look similar to #8961
ncclementi commentedon Aug 8, 2022
Breakdown of upstream failures:
numeric_onlynumeric_onlydefault behavior - see Upstream fix for numeric_only default [WIP] #9241 and Passnumeric_onlythrough #9269 for referenceNo
numeric_only#9271 Julia filter most of the
numeric onlyproblems and the remaining issues aretest_roundtrip_parquet_dask_to_sparktest_map_partitions_with_delayed_collectionandtest_dropna(breakdown issue FixDataFrame.dropnamatch pandas upstream bug fix #9365 and proposed fix Don't allow incompatible keywords inDataFrame.dropna#9366)test_append_overlapping_divisionsand
test_parquet[fastparquet]jsignell commentedon Aug 9, 2022
Thanks for writing this up @ncclementi! Please feel free to pick up either of those PRs, or we can work on them together if you like.
jrbourbeau commentedon Oct 27, 2022
It looks like we're down to just a couple of failures
One is
scipy-related and the other is an interestingerror. @charlesbluca do you have bandwidth / interest in getting the
upstreamCI build passing over the finish line?charlesbluca commentedon Oct 27, 2022
Sure I can take a look into this
jrbourbeau commentedon Oct 27, 2022
Awesome, thanks @charlesbluca!
charlesbluca commentedon Oct 27, 2022
Looks like there are a few more upstream test failures that have cropped up since the run linked in this issue:
https://github.com/dask/dask/actions/runs/3333837387/jobs/5516179181
Unrelated, but it looks like the upstream workflow has been failing to update the link in the opened issue since we bumped to
actions/github-script@v6; might be worth dropping back down tov3for the time being to unblock that workflow unless it's immediately obvious what the issue there is.The additional failing tests are:
So thinking they might be related to the
test_entry_pointsfailure?jrbourbeau commentedon Oct 27, 2022
Ah, thanks for pointing that out. #9602 might fix that
Yeah, I suspect all those
importlib-related failures are from the same underlying causecharlesbluca commentedon Oct 27, 2022
Digging in more, it looks like the
scipyfailure is cropping up due to changes introduced in scipy/scipy#16835, which changes the expected input shape ofpopmeanforttest_1samp, as well as adding some additional information to the returned object; I'm not too familiar with the scipy stats functions, so it seems like it might take some non-trivial refactoring of ourttest_1sampto get the behavior consistent with scipy 1.10.The cause of the
importlibfailures is a little hard to track down, as it seems like some test being run before test_cli.py and test_compatibility.py is breakingimportlibsuch that we can't importimportlib.metadataas expected; my first guess was the S3 tests since those usemotowhich depends onimportlib_metadata, but running those first doesn't seem to reproduce.After running through the entire test suite to reproduce, I notice that
from importlib import metadatastill seems to work, so a short term unblocker could be to use that import style instead in the relevant places.jrbourbeau commentedon Oct 27, 2022
Thanks @charlesbluca!
Hrm, that's strange but not an unreasonable change if it gets things passing. Would you mind pushing up a PR for this?
charlesbluca commentedon Oct 28, 2022
Opened #9604 which should resolve the issues with importing
importlib.metadatancclementi commentedon Oct 28, 2022
Just for reference, we have individual issues about scipy and importlib.
test_stats.py::test_two[ttest_1samp-kwargs2]failing #9499AttributeError: module 'importlib' has no attribute 'metadata'#9497 (I'll close this one as this was merged Resolveimportlib-related failures in upstream CI #9604 )jrbourbeau commentedon Nov 22, 2022
#9499 is the remaining
upstreamfailure. That test was temporarilyxfailed in #9670 in order to get ourupstreamCI build passing. I'm going to go ahead and close this issue so that when a newupstreamtest failure pops up, a new issue will be opened (which we're more likely to see). Thanks all!