Code24Lab
Python Beginner

Python Data Foundations: NumPy & Pandas Basics

Learn how NumPy arrays and pandas DataFrames work by predicting what real code returns on a fictional bakery's data: indexing, vectorised maths, filters, sorting, statistics, groupby and CSV files, with every answer checked as you go.

20 lessons 20 labs Certificate

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

About this course

In this beginner course you learn how NumPy and pandas really behave by predicting what real code returns. Each of the 20 labs shows a short Python snippet next to a fictional bakery's data, and you work out the result in a live sheet: element-wise maths and broadcasting, slices and the axis argument, boolean masks and np.where, floor division, Series and DataFrames, loc versus iloc, filters with & and isin, sorting and ranks, describe and its ddof trap, value_counts, groupby, NaN handling and reading CSV files with the right separator. Every answer is checked instantly, the first lesson is free and a 15-question exam leads to your certificate.

Lessons

  1. Lists vs NumPy Arrays: Element-wise MathsLabFree
  2. Creating Arrays: arange, linspace, zeros and shapeLab Locked
  3. Indexing and Slicing 1-D ArraysLab Locked
  4. 2-D Arrays: Rows, Columns and the axis ArgumentLab Locked
  5. Vectorised Maths and BroadcastingLab Locked
  6. Boolean Masks and np.whereLab Locked
  7. Aggregations: median, std, argmax and cumsumLab Locked
  8. dtypes, Floor Division and ModuloLab Locked
  9. pandas Series: Values with LabelsLab Locked
  10. DataFrame Anatomy: shape, head, tail and NaNLab Locked
  11. Selecting Data with loc and ilocLab Locked
  12. Filtering Rows with ConditionsLab Locked
  13. Sorting, Top N and rank()Lab Locked
  14. New Columns with Vectorised ArithmeticLab Locked
  15. describe(): std, Quartiles and the IQRLab Locked
  16. value_counts, unique and nuniqueLab Locked
  17. groupby: Split, Apply, CombineLab Locked
  18. Missing Data: isna, dropna and fillnaLab Locked
  19. Reading and Writing CSV FilesLab Locked
  20. Final Project: The Weekly Store ReportLab Locked