3 ms·
Thanks for the tip! You weren't kidding... %time df['balance'].apply(lambda x: x * 36902.7 / 100e6).describe() Wall time: 12.6 s %time df["balance
by bspammer 5y ago
Thanks for the tip! You weren't kidding...
%time df['balance'].apply(lambda x: x * 36902.7 / 100e6).describe()
Wall time: 12.6 s
%time df["balance"].mul(36902.7).div(100e6).describe()
Wall time: 2.33 s