I have 3 csv files in folder and iterate through each file and convert each file into xlsx sheet.One of the csv file was 0kb(Empty file). My Code :
for file in glob.glob("*.csv"):
df=pd.read_csv(file)
df.to_excel(file+".xlsx",sheet_name=file,index=False)
Error : No columns to parse from the file