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

Method test_set_axis_name_raises

pandas/tests/generic/test_series.py:31–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 assert result.index.names, ["L1", "L2"]
30
31 def test_set_axis_name_raises(self):
32 ser = Series([1])
33 msg = "No axis named 1 for object type Series"
34 with pytest.raises(ValueError, match=msg):
35 ser._set_axis_name(name="a", axis=1)
36
37 def test_get_bool_data_preserve_dtype(self):
38 ser = Series([True, False, True])

Callers

nothing calls this directly

Calls 3

SeriesClass · 0.90
_set_axis_nameMethod · 0.80
raisesMethod · 0.45

Tested by

no test coverage detected