MCPcopy
hub / github.com/pydata/xarray / inline_index_repr

Function inline_index_repr

xarray/core/formatting.py:505–513  ·  view source on GitHub ↗
(index: pd.Index, max_width: int)

Source from the content-addressed store, hash-verified

503
504
505def inline_index_repr(index: pd.Index, max_width: int) -> str:
506 if hasattr(index, "_repr_inline_"):
507 repr_ = index._repr_inline_(max_width=max_width)
508 else:
509 # fallback for the `pandas.Index` subclasses from
510 # `Indexes.get_pandas_indexes` / `xr_obj.indexes`
511 repr_ = repr(index)
512
513 return repr_
514
515
516def summarize_index(

Callers 3

summarize_indexFunction · 0.90
summarize_indexFunction · 0.85
diff_indexes_reprFunction · 0.85

Calls 1

_repr_inline_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…