A simple and practical Pandas Cheat Sheet with common commands and examples for quick reference.
Useful for beginners and intermediate data scientists working with Python and Pandas.
Pandas is a fast, powerful, flexible, and easy-to-use open-source data analysis and manipulation library for Python.
This cheat sheet summarizes the most common tasks and functions you need when working with data in Pandas.
✅ Reading and writing data
✅ Selecting rows and columns
✅ Filtering and sorting data
✅ Handling missing values
✅ Grouping and aggregating
✅ Merging and joining DataFrames
✅ Useful tips and tricks
1️⃣ Clone or download this repository:
git clone https://github.com/anthonyRanivoarison/pandas-cheat-sheet.git
cd pandas-cheat-sheet
- Make sure that you have python installed.
- Create a virtual environment with:
python -m venv .venv
- Activate it:
source .venv/bin/activate # Linux & Mac
source .venv/Scripts/activate # Windows
- Install all dependencies with:
pip install -r requirements.txt
- Open jupyter notebook or an IDE to view and test codes. If you don't have jupyter, use Google Colab