Provide an implementation for the aggregators. Returns ------- Result of aggregation, or None if agg cannot be performed by this method.
(self)
| 277 | pass |
| 278 | |
| 279 | def agg(self) -> DataFrame | Series | None: |
| 280 | """ |
| 281 | Provide an implementation for the aggregators. |
| 282 | |
| 283 | Returns |
| 284 | ------- |
| 285 | Result of aggregation, or None if agg cannot be performed by |
| 286 | this method. |
| 287 | """ |
| 288 | func = self.func |
| 289 | |
| 290 | if isinstance(func, str): |
| 291 | return self.apply_str() |
| 292 | |
| 293 | if is_dict_like(func): |
| 294 | return self.agg_dict_like() |
| 295 | elif is_list_like(func): |
| 296 | # we require a list, but not a 'str' |
| 297 | return self.agg_list_like() |
| 298 | |
| 299 | # caller can react |
| 300 | return None |
| 301 | |
| 302 | def transform(self) -> DataFrame | Series: |
| 303 | """ |
no test coverage detected