From b9794347d50917926f9723d9b926de5ffd561c96 Mon Sep 17 00:00:00 2001 From: Yohei Tamura Date: Sat, 2 Feb 2019 23:55:33 +0900 Subject: [PATCH] fix whatsnew --- doc/source/whatsnew/v0.25.0.rst | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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 ^^^^^^^^^^^^^^^^^