Guide 13 · Data Science and Machine Learning

Pandas, Deep Dive

Indexing, grouping, reshaping and merging, with the traps that cost people days.

Planned 18 notebooks 0 written

Before this guide: NumPy, Deep Dive.

The notebooks

None of these notebooks is written yet. This is the plan, in reading order.

1Why PandasTables with labels, and what that buys younot yet written
2SeriesThe labeled array, and the index you did not ask fornot yet written
3DataFrameConstruction, and looking at the shape of your datanot yet written
4Reading Dataread_csv, and the arguments that actually matternot yet written
5Inspectinghead, info, describe, dtypes, and reading them properlynot yet written
6Selecting ColumnsThe two syntaxes, and which one to prefernot yet written
7loc and ilocLabel against position, and the error you keep hittingnot yet written
8Boolean FilteringMasks, and combining conditions without a subtle bugnot yet written
9The IndexWhat it is for, setting it, resetting it, and multi-levelnot yet written
10Missing DataNaN against None, and what dropna actually dropsnot yet written
11Adding and Changing Columnsassign, and SettingWithCopyWarning finally explainednot yet written
12groupbySplit, apply, combine, and what the object before .agg isnot yet written
13AggregatingMultiple functions, named output, and transform against aggnot yet written
14Reshapingpivot, melt, and long against wide as a decisionnot yet written
15MergingThe four joins, and the duplicate key that invents rowsnot yet written
16Dates and TimesParsing, time zones, and resampling a seriesnot yet written
17StringsThe .str accessor, and vectorized text worknot yet written
18Performance and Memorydtypes, categories, and reading a file too big for memorynot yet written