(index: pd.Index, max_width: int)
| 503 | |
| 504 | |
| 505 | def 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 | |
| 516 | def summarize_index( |
no test coverage detected
searching dependent graphs…