1

df:

job_Id    Company_Name   Min_Salary 
   1           X              50  
   2           X              12  
   3           X              45  
   1           y              63 
   2           y              75  
   3           y              25   

df_output:

job_Id    X      y
  1      50     63   
  2      12     75 
  3      45     25     

I need to unstack my dataframe as i showed in the above example. I tried unstack func but i am not able to use properly.

James Lin
  • 157
  • 6
  • Use [`.pivot`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pivot.html#pandas-dataframe-pivot) – Andrej Kesely Aug 20 '21 at 08:25

0 Answers0