MCPcopy
hub / github.com/pandas-dev/pandas / time_series_cython

Method time_series_cython

asv_bench/benchmarks/groupby.py:1075–1085  ·  view source on GitHub ↗
(self, parallel)

Source from the content-addressed store, hash-verified

1073 )
1074
1075 def time_series_cython(self, parallel):
1076 def function(values):
1077 total = 0
1078 for i, value in enumerate(values):
1079 if i % 2:
1080 total += value + 5
1081 else:
1082 total += value * 2
1083 return total
1084
1085 self.grouper[1].agg(function, engine="cython")
1086
1087 def time_dataframe_numba(self, parallel):
1088 def function(values, index):

Callers

nothing calls this directly

Calls 1

aggMethod · 0.45

Tested by

no test coverage detected