← Learning Hub
Beginner

Data Analysis with Python: Introduction

Data analysis means turning raw data - sales, marks, website visits - into answers: Which city sells most? Which month dropped? What should we stock more of? Python is the most popular language for this, thanks to three libraries:

Companies collect huge amounts of data - sales, website visits, customer feedback - but data only becomes valuable when someone turns it into answers. Python with pandas is the most popular tool for this work, used by data analysts, scientists and engineers. It can handle files far bigger than Excel comfortably and repeats an analysis with one click.

  • NumPy - fast maths on big lists of numbers
  • Pandas - tables of data (like Excel sheets) you can filter, group and join with code
  • Matplotlib - charts

Install

Example
pip install pandas numpy matplotlib jupyterlab
jupyter lab          # opens notebooks in your browser

Analysts usually work in Jupyter notebooks: you run code in small cells and see tables and charts right under them. Google Colab gives you notebooks free in the browser with everything already installed. A normal .py file works too.

First taste

Example
You can edit this code.
Every example in this course shows its real output. You need basic Python first (variables, lists, dictionaries, functions) - see the Python course.
Key points
  • NumPy for fast numbers, pandas for tables, Matplotlib for charts.
  • Jupyter notebooks show results next to code.
  • Analysis = load, clean, calculate, explain.

📝 Test yourself

1. Which library is mainly for tables of data?
2. What is Jupyter used for?
3. Fill in the usual short name pandas is imported as:
import pandas as