Unstack a (multi-)index into multiple (single) indexes. Implementation is optional but required in order to support unstacking the coordinates from which this index has been built. Returns ------- indexes : tuple A 2-length tuple where the 1st it
(self)
| 154 | ) |
| 155 | |
| 156 | def unstack(self) -> tuple[dict[Hashable, Index], pd.MultiIndex]: |
| 157 | """Unstack a (multi-)index into multiple (single) indexes. |
| 158 | |
| 159 | Implementation is optional but required in order to support unstacking |
| 160 | the coordinates from which this index has been built. |
| 161 | |
| 162 | Returns |
| 163 | ------- |
| 164 | indexes : tuple |
| 165 | A 2-length tuple where the 1st item is a dictionary of unstacked |
| 166 | Index objects and the 2nd item is a :py:class:`pandas.MultiIndex` |
| 167 | object used to unstack unindexed coordinate variables or data |
| 168 | variables. |
| 169 | """ |
| 170 | raise NotImplementedError() |
| 171 | |
| 172 | def create_variables( |
| 173 | self, variables: Mapping[Any, Variable] | None = None |
no outgoing calls