Skip to content

Commit

Permalink
fix whatsnew
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuhey committed Feb 2, 2019
1 parent 83a1963 commit b979434
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions doc/source/whatsnew/v0.25.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ including other versions of pandas.
Other Enhancements
^^^^^^^^^^^^^^^^^^

-
- Indexing and __getitem__ of DataFrame and Series now accept zerodim np.ndarray. (:issue:`24919`)
-
-

Expand All @@ -28,25 +28,6 @@ Backwards incompatible API changes

.. _whatsnew_0250.api.other:

Indexing and getitem accept zerodim np.ndarray
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Indexing and getitem of pd.DataFrame now accept zerodim np.array.

.. ipython:: python
df = pd.DataFrame([[1, 2], [3, 4]])[np.array(0)]
df.iloc[np.array(0)]
df.loc[np.array(0)]
df[np.array(0)]
Indexing and getitem of pd.Series now accept zerodim np.array.

.. ipython:: python
sr = pd.Series([1, 2])
sr.iloc[np.array(0)]
sr.loc[np.array(0)]
sr[np.array(0)]
Other API Changes
^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit b979434

Please sign in to comment.