@@ -8509,7 +8509,7 @@ def resample(
85098509 level : Level = None ,
85108510 origin : str | TimestampConvertibleTypes = "start_day" ,
85118511 offset : TimedeltaConvertibleTypes | None = None ,
8512- group_keys : bool_t | lib . NoDefault = lib . no_default ,
8512+ group_keys : bool_t = False ,
85138513 ) -> Resampler :
85148514 """
85158515 Resample time-series data.
@@ -8570,17 +8570,20 @@ def resample(
85708570
85718571 .. versionadded:: 1.1.0
85728572
8573- group_keys : bool, optional
8573+ group_keys : bool, default False
85748574 Whether to include the group keys in the result index when using
8575- ``.apply()`` on the resampled object. Not specifying ``group_keys``
8576- will retain values-dependent behavior from pandas 1.4
8577- and earlier (see :ref:`pandas 1.5.0 Release notes
8578- <whatsnew_150.enhancements.resample_group_keys>`
8579- for examples). In a future version of pandas, the behavior will
8580- default to the same as specifying ``group_keys=False``.
8575+ ``.apply()`` on the resampled object.
85818576
85828577 .. versionadded:: 1.5.0
85838578
8579+ Not specifying ``group_keys`` will retain values-dependent behavior
8580+ from pandas 1.4 and earlier (see :ref:`pandas 1.5.0 Release notes
8581+ <whatsnew_150.enhancements.resample_group_keys>` for examples).
8582+
8583+ .. versionchanged:: 2.0.0
8584+
8585+ ``group_keys`` now defaults to ``False``.
8586+
85848587 Returns
85858588 -------
85868589 pandas.core.Resampler
0 commit comments