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

Method test_set_name

pandas/tests/series/methods/test_set_name.py:7–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestSetName:
7 def test_set_name(self):
8 ser = Series([1, 2, 3])
9 ser2 = ser._set_name("foo")
10 assert ser2.name == "foo"
11 assert ser.name is None
12 assert ser is not ser2
13
14 def test_set_name_attribute(self):
15 ser = Series([1, 2, 3])

Callers

nothing calls this directly

Calls 2

_set_nameMethod · 0.95
SeriesClass · 0.90

Tested by

no test coverage detected