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

Method __repr__

pandas/core/indexes/base.py:1442–1452  ·  view source on GitHub ↗

Return a string representation for this object.

(self)

Source from the content-addressed store, hash-verified

1440
1441 @final
1442 def __repr__(self) -> str_t:
1443 """
1444 Return a string representation for this object.
1445 """
1446 klass_name = type(self).__name__
1447 data = self._format_data()
1448 attrs = self._format_attrs()
1449 attrs_str = [f"{k}={v}" for k, v in attrs]
1450 prepr = ", ".join(attrs_str)
1451
1452 return f"{klass_name}({data}{prepr})"
1453
1454 @property
1455 def _formatter_func(self):

Callers

nothing calls this directly

Calls 3

_format_dataMethod · 0.95
_format_attrsMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected