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

Function header

scripts/validate_docstrings.py:402–408  ·  view source on GitHub ↗
(title, width=80, char="#")

Source from the content-addressed store, hash-verified

400 func_name: str, ignore_errors: dict[str, set[str]]
401) -> int:
402 def header(title, width=80, char="#") -> str:
403 full_line = char * width
404 side_len = (width - len(title) - 2) // 2
405 adj = "" if len(title) % 2 == 0 else " "
406 title_line = f"{char * side_len} {title}{adj} {char * side_len}"
407
408 return f"\n{full_line}\n{title_line}\n{full_line}\n\n"
409
410 result = pandas_validate(func_name)
411

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected