Пример #1
0
 def _f_gser(x):
     # note, no return annotation, so translator will raise an error
     return GroupByAgg.from_result(x.mean(), x)
Пример #2
0
 def f(x) -> Any:
     return GroupByAgg.from_result(x.mean() + 10, x)
Пример #3
0
 def f(x):
     return GroupByAgg.from_result(x.mean(), x)
Пример #4
0
 def _f_grouped(x) -> GroupByAgg:
     return GroupByAgg.from_result(x.mean() + 10, x)
Пример #5
0
def _n_grouped(x: GroupBy) -> GroupByAgg:
    return GroupByAgg.from_result(x.size(), x)