Repository navigation
FIX-#7697: Use "start" as the default for convention in resample - #7714
Open
bhaskargurram-ai wants to merge 1 commit into
Open
bhaskargurram-ai wants to merge 1 commit into
bhaskargurram-ai wants to merge 1 commit into
Conversation
…n `resample` pandas 2.3.3 (pandas-dev/pandas#62480) reverted the deprecation of the `convention` keyword, so `DataFrame.resample`/`Series.resample` default it to "start" again and `TimeGrouper` validates the value it receives. Modin forwarded its own `lib.no_default` sentinel, which pandas now rejects with `ValueError: Unsupported value _NoDefault.no_default for `convention``, so every resample aggregation failed. Default `convention` to "start" like pandas, and drop the now unneeded `lib.no_default` translation in `Resampler._get_groups`. Signed-off-by: Bhaskar Gurram <gurrambhaskar.ai@gmail.com>
bhaskargurram-ai
requested review from
a team,
RehanSD,
YarShev,
anmyachev,
dchigarev,
devin-petersohn,
mvashishtha and
vnlitvinov
as code owners
October 11, 2026 03:15
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
pandas 2.3.3 (pandas-dev/pandas#62480) reverted the deprecation of the
conventionkeyword ofresample: its default is"start"again and the value is passed straight toTimeGrouper, which validates it. Modin'sBasePandasDataset.resampledefaultedconventiontolib.no_defaultand forwarded that sentinel inresample_kwargstodf.resample(**resample_kwargs)(both in the default-to-pandas path and in the partitionmap_func), so on pandas 2.3.3 every resample aggregation failed withValueError: Unsupported value _NoDefault.no_default forconvention``.This makes
"start"the default, matching pandas 2.3.3 (and pandas 3.0), and removes the now unneededlib.no_defaulttranslation inResampler._get_groups. With pandas 2.2.x the behavior is unchanged (no_defaultwas mapped to"start"there) and no warning surfaces from Modin; the only difference is thattest_api.py's signature-default comparison forresamplenow matches 2.3.3 instead of 2.2.x.Adds a regression test that resamples a Series on the current engine and under
Backend="Pandas"and compares with pandas. The existing resample tests intest_series.pyanddataframe/test_default.pyfail onmainwith pandas 2.3.3 and pass with this change, as dotest_dataframe_api_equality/test_series_api_equality.flake8 modin/ asv_bench/benchmarks scripts/doc_checker.pyblack --check modin/ asv_bench/benchmarks scripts/doc_checker.pygit commit -sResample.mean()raises error on pandas 2.3.3 with native execution #7697docs/development/architecture.rstis up-to-date