Using this code I have write/replace data in an excel file. But now i need to do the same thing for csv file. Can someone help me with that?
with pd.ExcelWriter('2.xlsx', mode='a', engine='openpyxl', if_sheet_exists='replace') as writer:
fm_data.to_excel(writer, sheet_name='Raw Data1')