This is my personal notebook where I'm learning Pandas. I made it mainly for myself, but sharing it here in case it helps someone else too.
It's a collection of notes and code examples covering the Pandas concepts I use most often for Data Science, Data Analysis, and AI/ML.
- Series — creating Series, attributes, indexing, selecting values, statistics, missing values, sorting, and common methods
- DataFrames — creating DataFrames, attributes, selecting rows and columns, filtering, and inspecting data
- Data Cleaning — handling missing values, duplicates, data types, replacing values, and basic transformations
- Statistics & Analysis —
mean,median,min,max,sum,std,var,quantile, and descriptive statistics - Indexing & Selection —
loc,iloc,at,iat, boolean filtering,isin, andquery - Grouping & Aggregation —
groupby,agg,aggregate, andtransform - Sorting & Ranking —
sort_values,sort_index,nlargest,nsmallest, andrank - Combining Data —
merge,join,concat, and related operations - Reshaping Data —
pivot,pivot_table,melt,stack,unstack, andexplode - Working with Text — common
.stroperations such aslower,upper,strip,contains,replace, andsplit - Working with Dates —
to_datetimeand common.dtoperations - Feature Manipulation —
shift,diff,pct_change, cumulative functions, androlling - Data Types —
astype,convert_dtypes, andselect_dtypes - Conversion & Export — converting Pandas objects to NumPy, lists, dictionaries, CSV, Excel, JSON, and other formats
(This list matches roughly what's in the notebook — update it if you add more topics.)
- Clone the repo:
git clone https://github.com/zaibgray/pandas.git
cd pandas- Install Pandas and Jupyter (if you don't have them):
pip install pandas jupyter- Open the notebook:
jupyter notebookThen just run the cells one by one.
I wanted a simple place to practice Pandas and keep notes for myself while learning Data Science and AI/ML.
It's mainly a reference for the Pandas concepts and methods I use most often.
If it helps you learn too, that's a bonus.
- Projects — coming soon
- NumPy — check out my NumPy notes
- Matplotlib — check out my Matplotlib notes
- Official Pandas documentation
- More notes on my GitHub account