Visualisation & export — flashcards
One card per lesson — 4 in this module. Recall the key points, then check. 4 cards. Click a card to flip, or use the arrow keys and space bar.
Plotting basics — what are the key points?
fig, ax = plt.subplots() is the pattern worth defaulting to · tight_layout prevents cropped labels · savefig before show, or the file comes out blank Read the lesson
Choosing a chart type — what are the key points?
Sort bar charts by value, and use horizontal bars for long labels · Bar charts must start at zero; line charts need not · Use alpha on scatter plots so overlapping points show density Read the lesson
Statistical charts with seaborn — what are the key points?
Seaborn takes a DataFrame and column names, and handles grouping for you · hue= requires long-form data, which is why melt matters · Box plots and heatmaps are where seaborn saves the most effort Read the lesson
Exporting data and charts — what are the key points?
Always pass index=False to to_csv unless the index is meaningful · Use ExcelWriter in a with block for multi-sheet workbooks · SVG for slides, PNG at dpi=150 for documents Read the lesson