-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Hi,
When using unstructured in a test, I get the following deprecation warning.
[redacted]/site-packages/unstructured/partition/xlsx.py:197: FutureWarning: Passing bytes to 'read_excel' is deprecated and will be removed in a future version. To read from a byte string, wrap it in a `BytesIO` object.
return pd.read_excel(f, sheet_name=None, header=self.header_row_idx)
See:
unstructured/unstructured/partition/xlsx.py
Line 197 in c04235c
return pd.read_excel(f, sheet_name=None, header=self.header_row_idx) |
Deprecation is logged here: https://pandas.pydata.org/docs/dev/reference/api/pandas.read_excel.html
Fix should be simple: wrap f in an BytesIO object.
Metadata
Metadata
Assignees
Labels
No labels