@@ -8564,7 +8564,7 @@ def resample(
85648564 level : Level = None ,
85658565 origin : str | TimestampConvertibleTypes = "start_day" ,
85668566 offset : TimedeltaConvertibleTypes | None = None ,
8567- group_keys : bool_t | lib . NoDefault = lib . no_default ,
8567+ group_keys : bool_t = False ,
85688568 ) -> Resampler :
85698569 """
85708570 Resample time-series data.
@@ -8625,17 +8625,20 @@ def resample(
86258625
86268626 .. versionadded:: 1.1.0
86278627
8628- group_keys : bool, optional
8628+ group_keys : bool, default False
86298629 Whether to include the group keys in the result index when using
8630- ``.apply()`` on the resampled object. Not specifying ``group_keys``
8631- will retain values-dependent behavior from pandas 1.4
8632- and earlier (see :ref:`pandas 1.5.0 Release notes
8633- <whatsnew_150.enhancements.resample_group_keys>`
8634- for examples). In a future version of pandas, the behavior will
8635- default to the same as specifying ``group_keys=False``.
8630+ ``.apply()`` on the resampled object.
86368631
86378632 .. versionadded:: 1.5.0
86388633
8634+ Not specifying ``group_keys`` will retain values-dependent behavior
8635+ from pandas 1.4 and earlier (see :ref:`pandas 1.5.0 Release notes
8636+ <whatsnew_150.enhancements.resample_group_keys>` for examples).
8637+
8638+ .. versionchanged:: 2.0.0
8639+
8640+ ``group_keys`` now defaults to ``False``.
8641+
86398642 Returns
86408643 -------
86418644 pandas.core.Resampler
0 commit comments