or even something like this: def some_function(): return some_grouped_data_series.apply( lambda x: x.some_function(param1=value1, param2=value2).mean().shift(some_number) )
Mainly the lambda like or .apply() like code styles
Any suggestions I should try to vectorize the above, I tried a few things but it complains or I get undesired results. My python performance shares can be found here: https://github.com/neomatrix369/awesome-ai-ml-dl/blob/master/Programming-in-Python.md#performance, please feel free to share yours via a PR.
@simd for x in 1:9 factorial *= x end
and the @simd macro handles conversion from loop to simd.