Welcome to the Introduction to Python repository!
This collection of Jupyter notebooks is designed to help beginners get started with Python programming through practical, hands-on examples.
Each notebook focuses on a different aspect of the Python ecosystem — from language fundamentals to working with data and visualization.
João Brogueira de Sousa
Assistant Professor in Economics, Nova SBE
If you have questions, suggestions, or find an issue, feel free to reach out or open an issue on GitHub.
This repository includes the following notebooks:
-
Getting Started: What is Python, Setup & Git/GitHub
How it’s used, how scripts and notebooks differ, and how Python executes code. Installing Python/Miniconda, setting up Jupyter, running scripts and notebooks, basic command-line workflow, Git fundamentals (clone, commit, push), and using GitHub to share work. -
Python Essentials
Assignment statements, data types, and operators
Learn how to declare variables, work with different data types (strings, numbers, booleans, etc.), and use basic operators to manipulate data. -
Methods and Functions, Modules, Conditionals, and Loops
Explore how to organize your code into reusable functions, use built-in and custom modules, and control program flow with conditionals and loops. -
Working with Data: Pandas, Aggregations, and Transforms
Get familiar with thepandaslibrary to load, manipulate, and analyze datasets.
Learn how to use aggregations, transforms, and apply operations efficiently. -
Plotting with Matplotlib
Discover how to create and customize plots using thematplotliblibrary — from basic line charts to more advanced visualizations. -
Scraping Data with Python
Learn how to collect data from websites and datasets.
You can explore the notebooks in two ways:
You can open and run the notebooks directly in your browser using one of these platforms:
-
Clone this repository
git clone https://github.com/jbrogueira/python_intro.git cd python_intro -
Install Conda (if you don’t have it already)
You can install Conda by downloading one of the following distributions:- Anaconda — includes many data science packages by default.
- Miniconda — a lightweight alternative that lets you install only what you need.
After installation, make sure Conda is available by running:
conda --version
-
Create and activate the conda environment
conda env create -f environment.yml conda activate intro-python
-
Start Jupyter
jupyter notebook
By the end of these notebooks, you will be able to:
- Understand Python syntax and basic programming constructs
- Write and organize your own functions and modules
- Analyze and transform data using
pandas - Visualize data using
matplotlib - Retrieve and process data from the web
- Python Official Documentation
- Pandas Documentation
- Matplotlib Documentation
- QuantEcon Python Lectures
These notebooks were prepared for students at Nova SBE as part of an introductory series on Python programming for economics.
They are intended as a practical companion for self-learning and classroom use.
This project is licensed under the MIT License.
