Skip to content

Commit 3cffa0f

Browse files
committed
Rebase #46096 on main
1 parent 7495003 commit 3cffa0f

File tree

1 file changed

+1
-41
lines changed

1 file changed

+1
-41
lines changed

doc/source/whatsnew/v1.5.0.rst

+1-41
Original file line numberDiff line numberDiff line change
@@ -228,47 +228,6 @@ use ``series.loc[i:j]``.
228228

229229
Slicing on a :class:`DataFrame` will not be affected.
230230

231-
.. _whatsnew_150.deprecations.quantile_datetime_timedelta_columns:
232-
233-
234-
In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
235-
236-
237-
For example:
238-
.. ipython:: python
239-
240-
In [2]: df = pd.DataFrame(
241-
...: {"A": [1, 2, 3], "B": pd.date_range("2014-01-01", periods=3, freq="m")}
242-
...: )
243-
244-
245-
In the old behavior, datetime/timedelta columns are dropped:
246-
247-
*Old behavior*:
248-
249-
.. code-block:: ipython
250-
251-
In [3]: df.quantile(0.5)
252-
Out[3]:
253-
A 2.0
254-
Name: 0.5, dtype: float64
255-
256-
257-
In a future version, these columns will be included in the result:
258-
259-
*Future behavior*:
260-
261-
.. code-block:: ipython
262-
263-
In [4]: df.quantile(0.5)
264-
Out[4]:
265-
A 2.0
266-
B 2014-02-28 00:00:00
267-
Name: 0.5, dtype: object
268-
269-
To retain the old behavior, use ``df.quantile(q, numeric_only=False)``.
270-
271-
272231
.. _whatsnew_150.deprecations.excel_writer_attributes:
273232

274233
:class:`ExcelWriter` attributes
@@ -322,6 +281,7 @@ Other Deprecations
322281
- Deprecated the ``warn`` parameter in :func:`infer_freq` (:issue:`45947`)
323282
- Deprecated allowing non-keyword arguments in :meth:`ExtensionArray.argsort` (:issue:`46134`)
324283
- Deprecated treating all-bool ``object``-dtype columns as bool-like in :meth:`DataFrame.any` and :meth:`DataFrame.all` with ``bool_only=True``, explicitly cast to bool instead (:issue:`46188`)
284+
- In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
325285
-
326286

327287
.. ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)