update readme

This commit is contained in:
iuvbio 2019-01-30 23:29:24 +01:00
parent f6ed9d088f
commit f8ce3b2a57
1 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,12 @@
pandas_ods_reader pandas_ods_reader
=== ===
Provides a function to read in an ODS file and return a pandas DataFrame 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 Dependencies
--- ---
@ -23,6 +28,6 @@ from pandas_ods_reader import read_ods
path = "path/to/file.ods" path = "path/to/file.ods"
sheet_idx = 1 sheet_idx = 1
df1 = read_ods(path, sheet_idx) df1 = read_ods(path, sheet_idx)
sheet_name = "sheet" sheet_name = "sheet1"
df2 = read_ods(path, sheet_name) df2 = read_ods(path, sheet_name)
``` ```