Skip to content

Commit 83b5c98

Browse files
noatamiryehoshuadimarsky
authored andcommitted
TST: adding test for multiindex nunique raising not implemnted error (pandas-dev#47638)
* TST: adding test for multiindex nunique raising not implemnted error * renamed test
1 parent b0d19e1 commit 83b5c98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/indexing/multiindex/test_multiindex.py

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ def test_subtracting_two_series_with_unordered_index_and_all_nan_index(
214214
tm.assert_series_equal(result[0], a_series_expected)
215215
tm.assert_series_equal(result[1], b_series_expected)
216216

217+
def test_nunique_smoke(self):
218+
# GH 34019
219+
n = DataFrame([[1, 2], [1, 2]]).set_index([0, 1]).index.nunique()
220+
assert n == 1
221+
217222
def test_multiindex_repeated_keys(self):
218223
# GH19414
219224
tm.assert_series_equal(

0 commit comments

Comments
 (0)