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

Function _has_names

pandas/io/formats/format.py:1852–1856  ·  view source on GitHub ↗
(index: Index)

Source from the content-addressed store, hash-verified

1850
1851
1852def _has_names(index: Index) -> bool:
1853 if isinstance(index, MultiIndex):
1854 return com.any_not_none(*index.names)
1855 else:
1856 return index.name is not None
1857
1858
1859class EngFormatter:

Callers 3

to_stringMethod · 0.85
has_index_namesMethod · 0.85
has_column_namesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected