I'd like to read a string buffer into a pandas DataFrame. It seems that a good way to do it would be to use pandas' ExcelFile functionality. I've tried to do something like the following:
from pandas import ExcelFile as excel_handler
excel_data = excel_handler(StringIO(file_stream.read()).getvalue())
From then on, I guess ExcelFile.parse() can be used.
This produces the following error:
<class 'openpyxl.shared.exc.InvalidFileException'> [Errno 2] No such
file or directory: '
Any ideas on how to read in the file from the buffer?