Skip to content

Commit 9da54ad

Browse files
committed
Merge pull request #10500 from sinhrks/test_quantile
TST: DataFrame.quantile should have Float64Index
2 parents 0859e07 + fb677c8 commit 9da54ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12161,8 +12161,8 @@ def test_quantile(self):
1216112161

1216212162
result = df.quantile([.5, .75], axis=1)
1216312163
expected = DataFrame({1: [1.5, 1.75], 2: [2.5, 2.75],
12164-
3: [3.5, 3.75]}, index=["0.5", "0.75"])
12165-
assert_frame_equal(result, expected)
12164+
3: [3.5, 3.75]}, index=[0.5, 0.75])
12165+
assert_frame_equal(result, expected, check_index_type=True)
1216612166

1216712167
# We may want to break API in the future to change this
1216812168
# so that we exclude non-numeric along the same axis

0 commit comments

Comments
 (0)