vault backup: 2025-07-21 18:17:57
Affected files: .obsidian/workspace.json 0 Journal/0 Daily/2025-07-21.md Temporary/Pandas.md
This commit is contained in:
19
Temporary/Pandas.md
Normal file
19
Temporary/Pandas.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: Pandas
|
||||
created_date: 2025-07-21
|
||||
updated_date: 2025-07-21
|
||||
aliases:
|
||||
tags:
|
||||
---
|
||||
# Pandas
|
||||
|
||||
## Stack, Unstack
|
||||
Unstack converts a multi index into a column index
|
||||
Stack converts a multi column into a multi index
|
||||
## Melting and Pivoting
|
||||
|
||||
They are very specific --> you can do stack and unstack to achieve the same result
|
||||
|
||||
## get_dummies()
|
||||
|
||||
You can get categorical data (sex: male / female) into 2 columns: sex_Male (0 / 1), sex_Female (0/ 1)
|
||||
Reference in New Issue
Block a user