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

Method getndots

pandas/tests/io/formats/test_format.py:1841–1842  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1839
1840 def test_truncate_ndots(self):
1841 def getndots(s):
1842 return len(re.match(r"[^\.]*(\.*)", s).groups()[0])
1843
1844 s = Series([0, 2, 3, 6])
1845 with option_context("display.max_rows", 2):

Callers

nothing calls this directly

Calls 2

matchMethod · 0.80
groupsMethod · 0.45

Tested by

no test coverage detected