You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oemof-solph: v0.4.x - excel_reader
OS: Windows 10
Python: 3.9.1
If engine is not specified for xls = pd.ExcelFile(filename) the following error occurs:
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported
This happens as excel file was created for the extension xlsx which is not supported anymore by xlrd. The problem will be solved by installing openpyxl and specifying it as engine for parsing xlsx using pandas xls = pd.ExcelFile(filename,engine='openpyxl').
Another error occurs when running dispatch.py is that when parsed data are NaN (i.e. np.nan), if de["active"] return true. For avoiding that np.nan should be removed or check to be sure de["active"] is not NaN: if de["active"] and (not pd.isnull(de["active"]))
The text was updated successfully, but these errors were encountered:
oemof-solph: v0.4.x - excel_reader
OS: Windows 10
Python: 3.9.1
If
engine
is not specified forxls = pd.ExcelFile(filename)
the following error occurs:This happens as excel file was created for the extension
xlsx
which is not supported anymore byxlrd
. The problem will be solved by installing openpyxl and specifying it as engine for parsing xlsx using pandasxls = pd.ExcelFile(filename,engine='openpyxl')
.Another error occurs when running
dispatch.py
is that when parsed data are NaN (i.e. np.nan),if de["active"]
return true. For avoiding thatnp.nan
should be removed or check to be sure de["active"] is not NaN:if de["active"] and (not pd.isnull(de["active"]))
The text was updated successfully, but these errors were encountered: