Skip to content

Commit b979434

Browse files
committed
fix whatsnew
1 parent 83a1963 commit b979434

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

doc/source/whatsnew/v0.25.0.rst

+1-20
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ including other versions of pandas.
1616
Other Enhancements
1717
^^^^^^^^^^^^^^^^^^
1818

19-
-
19+
- Indexing and __getitem__ of DataFrame and Series now accept zerodim np.ndarray. (:issue:`24919`)
2020
-
2121
-
2222

@@ -28,25 +28,6 @@ Backwards incompatible API changes
2828

2929
.. _whatsnew_0250.api.other:
3030

31-
Indexing and getitem accept zerodim np.ndarray
32-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33-
34-
Indexing and getitem of pd.DataFrame now accept zerodim np.array.
35-
36-
.. ipython:: python
37-
df = pd.DataFrame([[1, 2], [3, 4]])[np.array(0)]
38-
df.iloc[np.array(0)]
39-
df.loc[np.array(0)]
40-
df[np.array(0)]
41-
42-
Indexing and getitem of pd.Series now accept zerodim np.array.
43-
44-
.. ipython:: python
45-
sr = pd.Series([1, 2])
46-
sr.iloc[np.array(0)]
47-
sr.loc[np.array(0)]
48-
sr[np.array(0)]
49-
5031
Other API Changes
5132
^^^^^^^^^^^^^^^^^
5233

0 commit comments

Comments
 (0)