Пример #1
0
 def test_warns_non_roundtrippable_names(self, idx):
     # GH 19130
     df = pd.DataFrame(index=idx)
     df.index.name = "index"
     with tm.assert_produces_warning():
         set_default_names(df)
Пример #2
0
 def test_set_names_unset(self, idx, nm, prop):
     data = pd.Series(1, idx)
     result = set_default_names(data)
     assert getattr(result.index, prop) == nm