(self)
| 551 | self.group_as_index = group_as_index |
| 552 | |
| 553 | def _get_index_and_items(self) -> tuple[pd.Index, pd.Series, np.ndarray]: |
| 554 | first_items, codes = self.first_items() |
| 555 | full_index = first_items.index |
| 556 | if first_items.isnull().any(): |
| 557 | first_items = first_items.dropna() |
| 558 | |
| 559 | full_index = full_index.rename("__resample_dim__") |
| 560 | return full_index, first_items, codes |
| 561 | |
| 562 | def first_items(self) -> tuple[pd.Series, np.ndarray]: |
| 563 | if isinstance(self.index_grouper, CFTimeGrouper): |