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

Method _mode

pandas/core/arrays/masked.py:1429–1432  ·  view source on GitHub ↗
(self, dropna: bool = True)

Source from the content-addressed store, hash-verified

1427 return Series(arr, index=index, name="count", copy=False)
1428
1429 def _mode(self, dropna: bool = True) -> Self:
1430 result, res_mask = mode(self._data, dropna=dropna, mask=self._mask)
1431 result = type(self)(result, res_mask)
1432 return result[result.argsort()]
1433
1434 def equals(self, other) -> bool:
1435 """

Callers

nothing calls this directly

Calls 2

modeFunction · 0.90
argsortMethod · 0.45

Tested by

no test coverage detected