Skip to content

Commit 3335589

Browse files
committed
DEPR: Update whatsnew pandas-dev#7308
1 parent 38cdb3a commit 3335589

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

doc/source/whatsnew/v1.5.0.rst

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -192,47 +192,6 @@ use ``series.loc[i:j]``.
192192

193193
Slicing on a :class:`DataFrame` will not be affected.
194194

195-
.. _whatsnew_150.deprecations.quantile_datetime_timedelta_columns:
196-
197-
198-
In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
199-
200-
201-
For example:
202-
.. ipython:: python
203-
204-
In [2]: df = pd.DataFrame(
205-
...: {"A": [1, 2, 3], "B": pd.date_range("2014-01-01", periods=3, freq="m")}
206-
...: )
207-
208-
209-
In the old behavior, datetime/timedelta columns are dropped:
210-
211-
*Old behavior*:
212-
213-
.. code-block:: ipython
214-
215-
In [3]: df.quantile(0.5)
216-
Out[3]:
217-
A 2.0
218-
Name: 0.5, dtype: float64
219-
220-
221-
In a future version, these columns will be included in the result:
222-
223-
*Future behavior*:
224-
225-
.. code-block:: ipython
226-
227-
In [4]: df.quantile(0.5)
228-
Out[4]:
229-
A 2.0
230-
B 2014-02-28 00:00:00
231-
Name: 0.5, dtype: object
232-
233-
To retain the old behavior, use ``df.quantile(q, numeric_only=False)``.
234-
235-
236195
.. _whatsnew_150.deprecations.excel_writer_attributes:
237196

238197
:class:`ExcelWriter` attributes
@@ -284,7 +243,7 @@ Other Deprecations
284243
- Deprecated treating float-dtype data as wall-times when passed with a timezone to :class:`Series` or :class:`DatetimeIndex` (:issue:`45573`)
285244
- Deprecated the behavior of :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``timedelta64[ns]`` dtype and incompatible fill value; in a future version this will cast to a common dtype (usually object) instead of raising, matching the behavior of other dtypes (:issue:`45746`)
286245
- Deprecated the ``warn`` parameter in :func:`infer_freq` (:issue:`45947`)
287-
246+
- In a future version, method :meth:`DataFrame.quantile` attribute ``numeric_only`` will default False. Including datetime/timedelta columns in the result (:issue:`7308`).
288247

289248
.. ---------------------------------------------------------------------------
290249
.. _whatsnew_150.performance:

0 commit comments

Comments
 (0)