Code24Lab
Python Intermediate

Python Data Analysis: GroupBy, Merge, Time Series & Plots

Group, merge, reshape, clean and resample fictional business data with pandas, predict exactly what each line of code returns and plot the results, with every answer checked as you go.

22 lessons 22 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

In this intermediate course you analyse fictional business data the way pandas does. Every lab shows real pandas code next to the data, and you predict exactly what it returns: groupby summaries with size, count, sum and nunique, transform and filter, ranking inside groups, inner and left merges with the duplicate-key trap, concat and drop_duplicates, pivot_table margins, melt, missing values, ffill and interpolate, the .dt accessor, weekly resampling, rolling averages, growth with pct_change and line and bar charts. A final project merges, filters, groups and ranks a margin report. Each answer is checked instantly, and a 15-question exam leads to your certificate.

Lessons

  1. First Look: Sum, Mean & value_counts on a Real Orders TableLabFree
  2. Boolean Masks: Filtering Rows with &, | and ~Lab Locked
  3. groupby Basics: size, sum and mean per RegionLab Locked
  4. size vs count: Groups with Missing ValuesLab Locked
  5. Named Aggregation: min, max and nunique in One ReportLab Locked
  6. Two Keys and unstack: From MultiIndex to Cross-TableLab Locked
  7. transform: Group Totals and Shares on Every RowLab Locked
  8. Filtering Whole Groups: groupby().filter() as HAVINGLab Locked
  9. Ranking Inside Groups: rank, cumcount and Top-NLab Locked
  10. merge on a Key: What an Inner Join Keeps and DropsLab Locked
  11. Left Joins, indicator=True and the Duplicate-Key TrapLab Locked
  12. concat and drop_duplicates: Combining Overlapping ExportsLab Locked
  13. pivot_table: Default mean, aggfunc and marginsLab Locked
  14. melt: From Wide Spreadsheets to Tidy Long DataLab Locked
  15. Missing Values: isna, fillna and dropna Without Fooling YourselfLab Locked
  16. Gaps in a Series: ffill, bfill and interpolateLab Locked
  17. Dates with the .dt Accessor: Weekdays, Weekends and NamesLab Locked
  18. resample: Weekly Totals, Counts and Means from Raw OrdersLab Locked
  19. Rolling Windows: Moving Averages and min_periodsLab Locked
  20. shift, diff and pct_change: Month-over-Month GrowthLab Locked
  21. Plotting with pandas: Line for Time, Bars for CategoriesLab Locked
  22. Final Project: Merge, Filter, Group and Rank a Margin ReportLab Locked