Skip to content

Commit 16bbaa9

Browse files
committed
test compares the result and expected value
1 parent e38be24 commit 16bbaa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tests/indexing/test_iloc.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -681,4 +681,8 @@ def test_indexing_zero_dim_np_array(self):
681681
df = DataFrame([[1, 2], [3, 4]])
682682

683683
# should not raise an error
684-
df.iloc[np.array(0)]
684+
result = df.iloc[np.array(0)]
685+
686+
# expected series
687+
sr = pd.Series([1, 2], name=0)
688+
tm.assert_series_equal(result, sr)

0 commit comments

Comments
 (0)