File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,10 @@ class ExcelFile:
245245 io : FilePath | ReadBuffer [bytes ] | bytes = ...
246246 def __init__ (
247247 self ,
248- io : FilePath | ReadBuffer [bytes ] | bytes ,
248+ path_or_buffer : FilePath | ReadBuffer [bytes ] | bytes ,
249249 engine : ExcelReadEngine | None = ...,
250250 storage_options : StorageOptions = ...,
251+ engine_kwargs : dict [str , Any ] | None = ...,
251252 ) -> None : ...
252253 def __fspath__ (self ): ...
253254 @overload
Original file line number Diff line number Diff line change @@ -1116,6 +1116,14 @@ def test_excel_reader():
11161116 check (assert_type (ef , pd .ExcelFile ), pd .ExcelFile )
11171117 check (assert_type (pd .read_excel (ef ), pd .DataFrame ), pd .DataFrame )
11181118
1119+ with pd .ExcelFile (
1120+ path_or_buffer = path ,
1121+ engine = "openpyxl" ,
1122+ engine_kwargs = {"data_only" : True },
1123+ ) as ef :
1124+ check (assert_type (ef , pd .ExcelFile ), pd .ExcelFile )
1125+ check (assert_type (pd .read_excel (ef ), pd .DataFrame ), pd .DataFrame )
1126+
11191127
11201128def test_excel_writer ():
11211129 with ensure_clean (".xlsx" ) as path :
You can’t perform that action at this time.
0 commit comments