@@ -415,30 +415,6 @@ These now coerce to ``object`` dtype.
415
415
- Inconsistent behavior in ``.where()`` with datetimelikes which would raise rather than coerce to ``object`` (:issue:`16402`)
416
416
- Bug in assignment against ``int64`` data with ``np.ndarray`` with ``float64`` dtype may keep ``int64`` dtype (:issue:`14001`)
417
417
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
-
442
418
.. _whatsnew_0210.api.na_changes:
443
419
444
420
NA naming Changes
@@ -596,6 +572,30 @@ Deprecations
596
572
- :func:`DataFrame.as_blocks` is deprecated, as this is exposing the internal implementation (:issue:`17302`)
597
573
- ``pd.TimeGrouper`` is deprecated in favor of :class:`pandas.Grouper` (:issue:`16747`)
598
574
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
+
599
599
.. _whatsnew_0210.deprecations.argmin_min
600
600
601
601
Series.argmax and Series.argmin
0 commit comments