Data Science/Python
[pandas]Dataframe Pivoting code.
Relative Keyword dataframe row to columns dataframe pivoting dataframe transpose dataframe swap row and columns import pandas as pd #Create dataframe salarydf = pd.DataFrame(data=[ ['2022-01-25', 'John' , 20000], ['2022-01-25', 'Selly', 25000], ['2022-01-25', 'Tina' , 32000], ['2022-02-25', 'John' , 21000], ['2022-02-25', 'Selly', 24000], ['2022-02-25', 'Tina' , 31000], ['2022-03-25', 'John' , 2..
2022. 4. 22. 03:12
최근댓글