Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 654 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 654 Bytes

FasterPandasOperation

These notebooks are for https://towardsdatascience.com/how-to-simply-make-an-operation-on-pandas-dataframe-faster-adaea5e41e96 .

In NumericTimeTest.ipynb I evaluated speed of iterrows() vs itertuples() vs apply() vs map() vs np.vectorize() vs np.where() vs numba for the same task. The difference is huge. The best method is 480X faster than the worst method on the same function.

In nonNumericTimeTest.ipynb I evaluated speed of iterrows() vs itertuples() vs apply() vs map() vs np.vectorize() vs np.where() vs pandas.Series.map() for the same task.

I added some usecases of Jupyter Notebook's Fortran magic in FortranMagic.