File tree 1 file changed +1
-20
lines changed
1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ including other versions of pandas.
16
16
Other Enhancements
17
17
^^^^^^^^^^^^^^^^^^
18
18
19
- -
19
+ - Indexing and __getitem__ of DataFrame and Series now accept zerodim np.ndarray. ( :issue: ` 24919 `)
20
20
-
21
21
-
22
22
@@ -28,25 +28,6 @@ Backwards incompatible API changes
28
28
29
29
.. _whatsnew_0250.api.other :
30
30
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
-
50
31
Other API Changes
51
32
^^^^^^^^^^^^^^^^^
52
33
You can’t perform that action at this time.
0 commit comments