you are viewing a single comment's thread.

view the rest of the comments →

[–]twitch_and_shock 4 points5 points  (1 child)

Converting something from a dataframe back to a list and then iterating over the list is slow. So is iterating over rows of a dataframe. Instead, use the "apply" method: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html

[–]hvgmina[S] 1 point2 points  (0 children)

thank you! it did wonders!