-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor init for Excel readers to _BaseExcelReader (#26233)
- Loading branch information
Showing
2 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The introduction of 'seek' here expands the envelope of what is expected of a "file-like object'. Pachyderm seems to think a file-like object needs to only implement
read
andclose
(and notseek
). As a result, we cannot pass a PFSFile object (which claims to be file-like) to read_excel (which claims to accept a file-like object). Why do we need a seek(0) of what should be a fresh file?