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

Method test_ser_mode_with_name

pandas/tests/test_algos.py:2032–2037  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2030 algos.mode(idx)
2031
2032 def test_ser_mode_with_name(self):
2033 # GH 46737
2034 ser = Series([1, 1, 3], name="foo")
2035 result = ser.mode()
2036 expected = Series([1], name="foo")
2037 tm.assert_series_equal(result, expected)
2038
2039
2040class TestDiff:

Callers

nothing calls this directly

Calls 2

modeMethod · 0.95
SeriesClass · 0.90

Tested by

no test coverage detected