Loading tutorials
if/else logic inside row loops with boolean masks. A mask is a column of True and False values that you compute once for the whole DataFrame.5 min readif/elif/else logic inside row loops with two NumPy functions that work on whole columns. It assumes you can build a DataFrame, read a boolean expression such as df["qty"] >= 3, and know that a Series has an index. Earlier chapters covered column arithmetic and boolean m6 min readdf["price"] * df["qty"]. Earlier chapters used column arithmetic as if it matched values row by row. It doesn't. pandas matches values by index label, and th6 min read.str and .dt accessors.5 min readgroupby and transform. It assumes you can index a DataFram5 min readgroupby basics, and have read the earlier chapters on column arithmetic and groupby with transform. It covers loops that carry state from one row to the next, such as "compare with the previous row" and "keep a running total". Both patte5 min readSeries.map and DataFrame.merge.6 min readtimeit. Here you will learn what each row-wise tool does internally. You will also learn how to pick the cheapest one when vectori6 min readgroupby, can create a DataFrame, and know that N5 min readgroupby with transform, shift and cumulative methods, map and merge, and the costs of apply, iterrows and itertuples. You should be comfortable with Python functions, loops and dictionaries, and with NumPy 7 min read