my dataframe-:
Unnamed: 0 AsF demos Unnamed: 1 Unnamed: 2 Unnamed: 3 Unnamed: 4
1 2 3 3 3 3 3
2 3 4 6 6 6 6
Expected result-:
AsF demos
1 2 3 3 3 3 3
2 3 4 6 6 6 6
i tried
df.rename( columns={'Unnamed: 0':'','Unnamed: 1':''}, inplace=True)
But I can't do that, because number of this kind of columns("unnamed:0") is not fix
I want to do this,because when i convert DF into CSV, it comes with "Unnamed" name that I do not want.
Thanks in Advance