>>> df1 = pd.DataFrame([['a', 'b'], ['c', 'd']], ... index=['row 1', 'row 2'], ... columns=['col 1', 'col 2']) >>> df1.to_excel("output.xlsx") # doctest: +SKIP
#Python, pandas #To export a pandas dataframe into Excel df.to_excel(r'Path where you want to store the exported excel file\File Name.xlsx', index = False)