Skip to content
Prev Previous commit
Next Next commit
Change comments in Warning and add whats new
  • Loading branch information
phofl committed Apr 3, 2020
commit 9cad0afa4d9cf92869f8b7edae4db94e151f3a92
1 change: 1 addition & 0 deletions doc/source/whatsnew/v1.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ Deprecations
- :meth:`DataFrame.to_dict` has deprecated accepting short names for ``orient`` in future versions (:issue:`32515`)
- :meth:`Categorical.to_dense` is deprecated and will be removed in a future version, use ``np.asarray(cat)`` instead (:issue:`32639`)
- The ``fastpath`` keyword in the ``SingleBlockManager`` constructor is deprecated and will be removed in a future version (:issue:`33092`)
- The ``squeeze`` keyword in the ``groupby`` function is deprecated and will be removed in a future version (:issue:`32380`)

.. ---------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5822,7 +5822,7 @@ def groupby(
if squeeze is not no_default:
warnings.warn(
(
"The `squeeze` parameter in pd.groupby is deprecated and "
"The `squeeze` parameter is deprecated and "
"will be removed in a future version."
),
FutureWarning,
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7420,7 +7420,7 @@ def clip(
Reduce the dimensionality of the return type if possible,
otherwise return a consistent type.

deprecated:: 2.0
deprecated:: 1.1.0

observed : bool, default False
This only applies if any of the groupers are Categoricals.
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ def groupby(
if squeeze is not no_default:
warnings.warn(
(
"The `squeeze` parameter in pd.groupby is deprecated and "
"The `squeeze` parameter is deprecated and "
"will be removed in a future version."
),
FutureWarning,
Expand Down