How to Reshape Dataframes | Pivot, Stack, Melt and More @misraturp
How to Reshape Dataframes | Pivot, Stack, Melt and More  @misraturp
Uploaded July 2022 | Updated September 2026, 58 minutes ago
When working with datasets you will need to change the shape and the perspective of the data. This is done sometimes for analysis purposes and sometimes just to explore the data a bit better. In this video, we learn 8 ways to change the shape of the dataframe we are working with to gain a new perspective on it. The functions we learn are:

1. pivot
2. pivot_table
3. Stack
4. Unstack
5. Melt
6. Groupby
7. Crosstab
8. Explode

Find the code here: github.com/misraturp/Pandas-dataframe-reshaping

RESOURCES:
🐼 Pandas cheat sheet: misraturp.gumroad.com/l/pandascs
πŸ“™ Fundamentals of Deep Learning in 25 pages: misraturp.gumroad.com/l/fdl

🌎 Website - misraturp.com
πŸ₯ Twitter - twitter.com/misraturp

00:00 Introduction
00:42 Pivot
02:12 Pivot_table
04:24 Stack
05:45 Unstack
06:22 Melt
07:53 Groupby
09:22 Crosstab
10:36 Explode
12:03 Download the Pandas Cheat Sheet!
How to Reshape Dataframes | Pivot, Stack, Melt and MoreBasics of Recurrent Neural NetworksHow to Tune a Neural NetworkHow are training and tuning different?A Summary of Deep Learning and Artificial Intelligence LandscapeStarting out on YouTube: why the Data Professor got into the YT businessHow to Make Neural Networks Train Faster on KerasHow to Evaluate a Neural Networks PerformanceHow to Do Data Exploration (step-by-step tutorial on real-life dataset)Pandas fundamentals every data scientist needs to know - Part 5Episode 17 - Starting a business on data with Susan Walsh, The Classification GuruFixing Incorrect Column Types in Pandas to Prepare Data for ML
MΔ±sra Turp |

How to Reshape Dataframes | Pivot, Stack, Melt and More

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER