MCPcopy
hub / github.com/pandas-dev/pandas / test_rename_none

Method test_rename_none

pandas/tests/series/methods/test_rename.py:116–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 assert result.name == expected.name
115
116 def test_rename_none(self):
117 # GH 40977
118 ser = Series([1, 2], name="foo")
119 result = ser.rename(None)
120 expected = Series([1, 2])
121 tm.assert_series_equal(result, expected)
122
123 def test_rename_series_with_multiindex(self):
124 # issue #43659

Callers

nothing calls this directly

Calls 2

renameMethod · 0.95
SeriesClass · 0.90

Tested by

no test coverage detected