@@ -8509,7 +8509,7 @@ def resample(
8509
8509
level : Level = None ,
8510
8510
origin : str | TimestampConvertibleTypes = "start_day" ,
8511
8511
offset : TimedeltaConvertibleTypes | None = None ,
8512
- group_keys : bool_t | lib . NoDefault = lib . no_default ,
8512
+ group_keys : bool_t = False ,
8513
8513
) -> Resampler :
8514
8514
"""
8515
8515
Resample time-series data.
@@ -8570,17 +8570,20 @@ def resample(
8570
8570
8571
8571
.. versionadded:: 1.1.0
8572
8572
8573
- group_keys : bool, optional
8573
+ group_keys : bool, default False
8574
8574
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.
8581
8576
8582
8577
.. versionadded:: 1.5.0
8583
8578
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
+
8584
8587
Returns
8585
8588
-------
8586
8589
pandas.core.Resampler
0 commit comments