@@ -8564,7 +8564,7 @@ def resample(
8564
8564
level : Level = None ,
8565
8565
origin : str | TimestampConvertibleTypes = "start_day" ,
8566
8566
offset : TimedeltaConvertibleTypes | None = None ,
8567
- group_keys : bool_t | lib . NoDefault = lib . no_default ,
8567
+ group_keys : bool_t = False ,
8568
8568
) -> Resampler :
8569
8569
"""
8570
8570
Resample time-series data.
@@ -8625,17 +8625,20 @@ def resample(
8625
8625
8626
8626
.. versionadded:: 1.1.0
8627
8627
8628
- group_keys : bool, optional
8628
+ group_keys : bool, default False
8629
8629
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.
8636
8631
8637
8632
.. versionadded:: 1.5.0
8638
8633
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
+
8639
8642
Returns
8640
8643
-------
8641
8644
pandas.core.Resampler
0 commit comments