The final reshape

Rimodellare i dati con pandas

Maria Eugenia Inzaugarat

Data Scientist

 

Congrats message

Rimodellare i dati con pandas

Chapter 1

 

DataFrame with chapter 1 content

Concept of long and wide formats

Use .pivot() method - columns as unique variables, index as individual observations

Create pivot tables

Learn the difference between .pivot() and .pivot_table()

Rimodellare i dati con pandas

Chapter 2

 

DataFrame with chapter 2 content

From a wide to a long format using:

  • the .melt() method
  • the wide_to_long() function

Splitting or concatenating string columns

Rimodellare i dati con pandas

Chapter 3

 

DataFrame with chapter 3 content

Multi-level index

Use .stack() and .unstack()

Handle generated missing data

Rimodellare i dati con pandas

Chapter 4

 

DataFrame with chapter 4 content

Combine reshaping and grouping processes

List-like column transformation

Nested data in columns

Rimodellare i dati con pandas

Thank you!

Rimodellare i dati con pandas

Preparing Video For Download...