Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 45d0ee7

Browse files
committedOct 2, 2017
whatsnew updates
1 parent 7faff8a commit 45d0ee7

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed
 

‎doc/source/whatsnew/v0.21.0.txt

+24-24
Original file line numberDiff line numberDiff line change
@@ -415,30 +415,6 @@ These now coerce to ``object`` dtype.
415415
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
416416
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
417417

418-
.. _whatsnew_0210.api_breaking.select:
419-
420-
Select method is deprecated
421-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
422-
423-
The :meth:`Series.select` and :meth:`DataFrame.select` methods are deprecated in favor of using ``.loc[]`` (:issue:`12401`)
424-
425-
.. ipython:: python
426-
427-
df = DataFrame({'A': [1, 2, 3]}, index=['foo', 'bar', 'baz'])
428-
429-
.. code_block:: ipython
430-
431-
In [3]: df.select(lambda x: x in ['bar', 'baz'])
432-
FutureWarning: select is deprecated and will be removed in a future release. You can use .loc[crit] as a replacement
433-
Out[3]:
434-
A
435-
bar 2
436-
baz 3
437-
438-
.. ipython:: python
439-
440-
df.loc[lambda x: x in ['bar', 'baz']]
441-
442418
.. _whatsnew_0210.api.na_changes:
443419

444420
NA naming Changes
@@ -596,6 +572,30 @@ Deprecations
596572
- :func:`DataFrame.as_blocks` is deprecated, as this is exposing the internal implementation (:issue:`17302`)
597573
- ``pd.TimeGrouper`` is deprecated in favor of :class:`pandas.Grouper` (:issue:`16747`)
598574

575+
.. _whatsnew_0210.api_breaking.select:
576+
577+
Select method is deprecated
578+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
579+
580+
The :meth:`Series.select` and :meth:`DataFrame.select` methods are deprecated in favor of using ``df.loc[labels.map(crit).values]`` (:issue:`12401`)
581+
582+
.. ipython:: python
583+
584+
df = DataFrame({'A': [1, 2, 3]}, index=['foo', 'bar', 'baz'])
585+
586+
.. code-block:: ipython
587+
588+
In [3]: df.select(lambda x: x in ['bar', 'baz'])
589+
FutureWarning: select is deprecated and will be removed in a future release. You can use .loc[crit] as a replacement
590+
Out[3]:
591+
A
592+
bar 2
593+
baz 3
594+
595+
.. ipython:: python
596+
597+
df.loc[df.index.map(lambda x: x in ['bar', 'baz']).values]
598+
599599
.. _whatsnew_0210.deprecations.argmin_min
600600

601601
Series.argmax and Series.argmin

0 commit comments

Comments
 (0)
Please sign in to comment.