๐[DataCamp] .merge_ordered() | .merge_asof() | .melt() Course -Joining data with pandas- wrap up
2020. 9. 8. 16:31ใLearning archive/Data Science
.query()
Reshaping data with .melt()
arguments :
id_vars ๋ณํํ์ง ์์ ์ปฌ๋ผ
value_vars ๋ณํ์ ๊ฐํ ์ปฌ๋ผ
๐Practice melting
melt()๋ฅผ ํตํด unpivotํด์ผํ๋ ์ด์ :
In general, data is often provided (especially by governments) in a format that is easily read by people but not by machines. The .melt() method is a handy tool for reshaping data into a useful form.
- In the .melt() method, the arguments value_name sets the name for values column, and var_name sets the name for the column with unpivoted headers.
๐Course wrap up :