import pandas as pd
data_xls=pd.read_excel('/users/adam/abc.xlsx',index=False)
data_xls.to_csv('def.csv,encoding='utf-8')
Also tried:
data_xls=pd.read_excel('/users/adam/abc.xlsx',index_col=False)
data_xls=pd.read_excel('/users/adam/abc.xlsx',index=None)
data_xls=pd.read_excel('/users/adam/abc.xlsx',index_col=None)
Actual Output:
Name Age
0 Adam 24
1 Steve 25
2 Jhon 23
Expected Output:
Name Age
Adam 24
Steve 25
Jhon 23
Is there a way If I can drop the index column before inserting the data into a hive table?
Dataframe.drop()method to drop any row or column. Check more here.