Reads in an .ods/.fods file and returns a pandas DataFrame object (+ parse cell formatting)
Go to file
iuvbio 7274646c8a
small fix
2019-01-30 23:34:45 +01:00
pandas_ods_reader small fix 2019-01-30 23:34:45 +01:00
.gitignore import read_ods in init and adapt test 2019-01-28 22:58:19 +01:00
LICENSE.txt add license and manifest 2019-01-28 21:22:40 +01:00
MANIFEST.in add license and manifest 2019-01-28 21:22:40 +01:00
README.md Merge branch 'master' of github.com:iuvbio/pandas_read_ods 2019-01-30 23:29:52 +01:00
setup.py update tests and add long description to setup 2019-01-30 23:25:37 +01:00

README.md

pandas_ods_reader

Provides a function to read in an ODS file and return a pandas DataFrame.

It uses ezodf to read in the ods file. If a range is specified in the sheet to be imported, it seems that ezodf imports empty cells as well. Therefore, all completely empty rows and columns are dropped from the DataFrame, before it is returned.

Dependencies

  • ezodf
  • lxml
  • pandas

Installation

pip install pandas_read_ods

Usage

from pandas_ods_reader import read_ods

path = "path/to/file.ods"
sheet_idx = 1
df1 = read_ods(path, sheet_idx)
sheet_name = "sheet1"
df2 = read_ods(path, sheet_name)