Skip to content

Career guides / Learning worksheets

NumPy Array Basics

NumPy arrays support numerical operations with explicit shapes and data types. Understand indexing and broadcasting before relying on compact expressions.

Before you begin

Know Python lists, indexing and basic arithmetic. Start with small arrays whose expected values you can check manually.

Work through the idea

Record the shape and data type of each input and output. Compare one operation against a hand calculation and test a boundary case. A shorter expression is useful only when you can explain its axes, shape changes and assumptions. Keep numerical examples reproducible with fixed, explicit inputs.

  1. Inspect array shape and dtype
  2. Compare elementwise and aggregate operations
  3. Check shape compatibility

Practice task

Create a small matrix of fictional measurements and calculate column means.

Check your result

Explain the axis used and compare one result with a manual calculation.

A mistake to avoid

Do not assume that every operation copies data or that differently shaped arrays combine as intended.

Keep a review note

Save the inputs or scenario, your reasoning and the result you checked. Explain one assumption and one case that needs more work. Revise the exercise after feedback and distinguish what you demonstrated from what remains untested.

Official reference for further study

Explore the related learning path · Choose another worksheet

Your learning roadmap for 2027

Explore practical skills, portfolio milestones and career preparation for your course.

Browse Course Roadmaps 2027