yalpsid eman
yalpsid eman

Reputation: 3452

How to convert a .ods file to .csv?

I've used xlrd for .xlsx files, but I haven't been able to find an equivalent for .ods files. How can I convert some_file.ods to some_file.csv using python?

Upvotes: 1

Views: 3020

Answers (1)

shmengie
shmengie

Reputation: 63

pip install odspy

pandas uses it to read ods files.

To convert to cvs w/pandas:

python

import pandas as pd
df = pd.read_excel('my_excel.ods')
df.to_csv('my_excel.csv')

Upvotes: 3

Related Questions