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
When specifying a chunksize during the ExcelFile.parse() method, I should be back an iterable object, but instead a DataFrame is returned.
If you return just the TextParser (change parser.read() to just parser) in the code block below, then iterating over the parsed ExcelFile works and returns the specified number of chunks.
The code block is taken from pandas.io.excel.py line 334
Sure, code below is taken from my script that is using the workbook.parse() method to return the iterable object. Before I changed 'return parser.read()' to just 'return parser' in the code above, this did not work as it would return each 'cell' of data in the dataframe in the 'for chunk' loop rather than each row.
Looks like TextParser doesn't exist anymore. And looks like there there isn't a complete, reproducible example. Happy to reopen if this issue gains more context
When specifying a chunksize during the ExcelFile.parse() method, I should be back an iterable object, but instead a DataFrame is returned.
If you return just the TextParser (change parser.read() to just parser) in the code block below, then iterating over the parsed ExcelFile works and returns the specified number of chunks.
The code block is taken from pandas.io.excel.py line 334
Hopefully I didn't make that confusing.
The text was updated successfully, but these errors were encountered: