Loading tutorials
perf_counter. Timing tells you how long a whole operation takes. Profiling tells you which step inside it takes the time.2 min readperf_counter for timing, and know why a Python-level loop over rows is slow. Here you learn when apply, map, and .str methods are acceptable, and when they hide a slow loop.2 min readgroupby, merge) and have used cProfile or perf_counter to find a slow or memory-heavy step. Here you will learn how a column's dtype affects memory and speed, and how to measure it.3 min readgroupby and merge, can read a short Python function, and have met the timing tools from earlier chapters. Group and join operations are often the slowest step in a pipeline. The usual causes are Python code running once per group, and joins that carry more da2 min readpd.concat. It builds on the earlier chapters on timing and on why row-wise code is slow.2 min readperf_counter and cProfile. It also assumes you have replaced row loops with vectorized operations. If a profile still shows one arithmetic-heavy step or one sequential loop dominating the run time, the tools here are the next option. 2 min readread_csv, use groupby, and know that pandas holds a whole DataFrame in memory. The earlier chapters in this tutorial covered the speed fixes. This one covers what to do when the data itself is the problem.3 min read