Skip to content

Commit daefa04

Browse files
committed
DEPR: Update whatsnew pandas-dev#7308
1 parent 329ee09 commit daefa04

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
@@ -244,47 +244,6 @@ use ``series.loc[i:j]``.
244244

245245
Slicing on a :class:`DataFrame` will not be affected.
246246

247-
.. _whatsnew_150.deprecations.quantile_datetime_timedelta_columns:
248-
249-
250-
In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
251-
252-
253-
For example:
254-
.. ipython:: python
255-
256-
In [2]: df = pd.DataFrame(
257-
...: {"A": [1, 2, 3], "B": pd.date_range("2014-01-01", periods=3, freq="m")}
258-
...: )
259-
260-
261-
In the old behavior, datetime/timedelta columns are dropped:
262-
263-
*Old behavior*:
264-
265-
.. code-block:: ipython
266-
267-
In [3]: df.quantile(0.5)
268-
Out[3]:
269-
A 2.0
270-
Name: 0.5, dtype: float64
271-
272-
273-
In a future version, these columns will be included in the result:
274-
275-
*Future behavior*:
276-
277-
.. code-block:: ipython
278-
279-
In [4]: df.quantile(0.5)
280-
Out[4]:
281-
A 2.0
282-
B 2014-02-28 00:00:00
283-
Name: 0.5, dtype: object
284-
285-
To retain the old behavior, use ``df.quantile(q, numeric_only=False)``.
286-
287-
288247
.. _whatsnew_150.deprecations.excel_writer_attributes:
289248

290249
:class:`ExcelWriter` attributes
@@ -338,6 +297,7 @@ Other Deprecations
338297
- Deprecated the ``warn`` parameter in :func:`infer_freq` (:issue:`45947`)
339298
- Deprecated allowing non-keyword arguments in :meth:`ExtensionArray.argsort` (:issue:`46134`)
340299
- 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`)
300+
- In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
341301
-
342302

343303
.. ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)