add_prompt_per_event is really slow. It uses custom python for loops, which can easily be replaced with pandas.groupby.
I remember originally implementing it like this, because for some reason pandas.groupby was very slow. Maybe pandas optimized something, maybe I used it in a stupid way. Anyway, we can replace it now with groupby.
add_prompt_per_eventis really slow. It uses custom python for loops, which can easily be replaced withpandas.groupby.I remember originally implementing it like this, because for some reason
pandas.groupbywas very slow. Maybe pandas optimized something, maybe I used it in a stupid way. Anyway, we can replace it now withgroupby.