Pandas performance tips
Using Python pandas can be quite a pain if you don’t know how to parse or read data effectively. This can be especially so if you are doing Kaggle and spend several minutes on each command, costing precious time for execution. For iterations: dict>.values>itertuples>iterrows>range(len(df)) A common way to iterate through a datafram is to...
Read More