diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 50090fc070970..5d3e883ed21d1 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -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`) - - @@ -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 ^^^^^^^^^^^^^^^^^