BUG: `Resample.mean()` raises error on pandas 2.3.3 with native execution
Modin version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest released version of Modin.
I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)
Reproducible Example
from modin.config import Backend
Backend.put("pandas")
import modin.pandas as pd
idx = pd.date_range("2018-01-01", periods=5, freq="h")
ts = pd.Series(range(len(idx)), index=idx)
ts.resample("2h").mean()
# ValueError: Unsupported value _NoDefault.no_default for `convention`Issue Description
https://github.com/pandas-dev/pandas/pull/62480 pandas 2.3.3 changed the default value of the convention argument to be "start" rather than no_default, which modin continues to transparently pass through to pandas. The fix here is to modify the default arguments for resample in base.py: https://github.com/modin-project/modin/blob/7ca200b08597ed6ecfd2db2d08bd322f83c2cec1/modin/pandas/base.py#L2626-L2639
Expected Behavior
Should not error.
Error Logs
Traceback (most recent call last):
File "<python-input-13>", line 1, in <module>
ts.resample("2h").mean()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/logging/logger_decorator.py", line 149, in run_and_log
result = obj(*args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/pandas/resample.py", line 311, in mean
query_compiler=self._query_compiler.resample_mean(
self.resample_kwargs,
*args,
**kwargs,
)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/logging/logger_decorator.py", line 149, in run_and_log
result = obj(*args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/storage_formats/base/query_compiler.py", line 6059, in resample_mean
return ResampleDefault.register(pandas.core.resample.Resampler.mean)(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self, resample_kwargs, *args, **kwargs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/dataframe/algebra/default2pandas/default.py", line 207, in args_cast
return wrapper(self, *args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/dataframe/algebra/default2pandas/default.py", line 254, in wrapper
return self.default_to_pandas(fn, *args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/logging/logger_decorator.py", line 149, in run_and_log
result = obj(*args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/storage_formats/base/query_compiler.py", line 315, in default_to_pandas
result = pandas_op(try_cast_to_pandas(self), *args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/dataframe/algebra/default2pandas/default.py", line 127, in applyier
result = fn(df, *args, **kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/modin/core/dataframe/algebra/default2pandas/resample.py", line 47, in fn
resampler = df.resample(**resample_kwargs)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/pandas/core/generic.py", line 9834, in resample
return get_resampler(
cast("Series | DataFrame", self),
...<10 lines>...
group_keys=group_keys,
)
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/pandas/core/resample.py", line 2043, in get_resampler
tg = TimeGrouper(obj, **kwds) # type: ignore[arg-type]
File "/Users/joshi/miniconda3/envs/snowpandas-314/lib/python3.14/site-packages/pandas/core/resample.py", line 2123, in __init__
raise ValueError(f"Unsupported value {convention} for `convention`")
ValueError: Unsupported value _NoDefault.no_default for `convention`Installed Versions
INSTALLED VERSIONS
commit : bce3707443d525cdca5c50f9c5e65f2f82fcc882 python : 3.14.3 python-bits : 64 OS : Darwin OS-release : 25.4.0 Version : Darwin Kernel Version 25.4.0: Thu Mar 19 19:31:17 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T6020 machine : arm64 processor : arm byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8
Modin dependencies
modin : 0.37.1 ray : None dask : None distributed : None
pandas dependencies
pandas : 2.3.3 numpy : 2.4.4 pytz : 2026.1.post1 dateutil : 2.9.0.post0 pip : 26.0.1 Cython : None sphinx : 5.0.2 IPython : None adbc-driver-postgresql: None adbc-driver-sqlite : None bs4 : None blosc : None bottleneck : None dataframe-api-compat : None fastparquet : None fsspec : 2026.3.0 html5lib : None hypothesis : None gcsfs : None jinja2 : 3.1.6 lxml.etree : 6.0.4 matplotlib : 3.10.8 numba : None numexpr : None odfpy : None openpyxl : 3.1.5 pandas_gbq : None psycopg2 : None pymysql : None pyarrow : 23.0.1 pyreadstat : None pytest : 7.4.4 python-calamine : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlsxwriter : None zstandard : None tzdata : 2026.1 qtpy : None pyqt5 : None
Source: modin-project/modin