guipsamora/pandas_exercises

Practice your pandas skills!

Jupyter Notebook

13,198

275 commits

updated Oct 17, 2025

See the code

README

Pandas Exercises

Fed up with a ton of tutorials but no easy way to find exercises I decided to create a repo just with exercises to practice pandas. Don't get me wrong, tutorials are great resources, but to learn is to do. So unless you practice you won't learn.

There will be three different types of files:
      1. Exercise instructions
      2. Solutions without code
      3. Solutions with code and comments

My suggestion is that you learn a topic in a tutorial, video or documentation and then do the first exercises. Learn one more topic and do more exercises. If you are stuck, don't go directly to the solution with code files. Check the solutions only and try to get the correct answer.

Suggestions and collaborations are more than welcome.🙂 Please open an issue or make a PR indicating the exercise and your problem/solution.

Lessons

Getting and knowing

Filtering and Sorting

Grouping

Apply

Merge

Stats

Visualization

Creating Series and DataFrames

Time Series

Deleting

Video Solutions

Video tutorials of data scientists working through the above exercises:

Data Talks - Pandas Learning By Doing

jupyter-notebooks
pandas
pandas-tutorial
python-pandas

guipsamora/pandas_exercises

Practice your pandas skills!

Jupyter Notebook

13,198

275 commits

updated Oct 17, 2025

See the code

README

Pandas Exercises

Fed up with a ton of tutorials but no easy way to find exercises I decided to create a repo just with exercises to practice pandas. Don't get me wrong, tutorials are great resources, but to learn is to do. So unless you practice you won't learn.

There will be three different types of files:
      1. Exercise instructions
      2. Solutions without code
      3. Solutions with code and comments

My suggestion is that you learn a topic in a tutorial, video or documentation and then do the first exercises. Learn one more topic and do more exercises. If you are stuck, don't go directly to the solution with code files. Check the solutions only and try to get the correct answer.

Suggestions and collaborations are more than welcome.🙂 Please open an issue or make a PR indicating the exercise and your problem/solution.

Lessons

Getting and knowing

Filtering and Sorting

Grouping

Apply

Merge

Stats

Visualization

Creating Series and DataFrames

Time Series

Deleting

Video Solutions

Video tutorials of data scientists working through the above exercises:

Data Talks - Pandas Learning By Doing

jupyter-notebooks
pandas
pandas-tutorial
python-pandas

Project health

Overall

2.8/10

Maintained

0/10

Code review

5/10
OpenSSF Scorecard

Significant stargazers

Alex Garcia

793 followers · starred Dec 2017

Tony Li (SII)

45 followers · starred Feb 2024

fxmarty

181 followers · starred Dec 2021

Lei Zhiyuan

201 followers · starred Oct 2020