I´ve got the following issue for which I haven´t found a solution yet here. I´m using Python 2.7 and I like to export Pandas Series to an excel file with umlauts ("ä", "ü", "ü")
e.g. for Python 2.7:
#Python 2.7###############
# -*- coding: iso-8859-15 -*-
import pandas as pd
import csv
city = ['München', 'Nürnberg', 'Würzburg']
result = pd.Series(city)
result.to_csv(result.to_csv('Umlauts.csv', sep= ',' , encoding='iso-8859-15')
It only works for csv if I open it with Excel even though the result are in the same line and column
0,München
1,Nürnberg
2,Würzburg
Question: What is the solution for exporting this Series frame into a Excel sheet like
A1 | A2
1 | München
2 | Nürnberg
3 | Würzburg
And can I transfer this solution for creating files called 'München.xls'?
Thanks for helping!
Best