df to excel
import pandas as pd
df.to_excel("File_Name.xlsx', index = False)
df to excel
import pandas as pd
df.to_excel("File_Name.xlsx', index = False)
convert from xls to xlsx C#
/// <summary>/// Using Microsoft.Office.Interop to convert XLS to XLSX format, to work with EPPlus library/// </summary>/// <param name="filesFolder"></param>
public static string ConvertXLS_XLSX(FileInfo file)
{
var app = new Microsoft.Office.Interop.Excel.Application();
var xlsFile = file.FullName;
var wb = app.Workbooks.Open(xlsFile);
var xlsxFile = xlsFile + "x";
wb.SaveAs(Filename: xlsxFile, FileFormat: Microsoft.Office.Interop.Excel.XlFileFormat.xlOpenXMLWorkbook);
wb.Close();
app.Quit();
return xlsxFile;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us