df.apply()if it's possible to obtain the same result by applying a built-in function.
applyis a slow operation both with pandas and with Terality. It can't be optimized as much as specialized built-in functions.
for x in structloops) is inefficient and is strongly discouraged both with pandas and Terality. For example, don't do:
Seriesshould be replaced by the
Series.summethod, which will run significantly faster.