I have two dataframes,namely 'df' and 'df1'
df
Out[14]:
first country Rating
0 Robert US 100
1 Chris Aus 99
2 Scarlett US 100
df1
Out[17]:
last Role
0 Downey IronMan
1 Hemsworth Thor
2 Johansson BlackWidow
Expected output:
first last Role Rating
0 Robert Downey IronMan 100
1 Chris Hemsworth Thor 99
2 Scarlett Johansson BlackWidow 100
I need to drop off the 'country' column and replace with another dataframe(ie. 'df1')
I understand,I can join dataframes and drop 'country' column,but I need columns exactly in this order.