We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80bddaf commit 064aec2Copy full SHA for 064aec2
doc/source/user_guide/io.rst
@@ -2864,6 +2864,16 @@ of sheet names can simply be passed to ``read_excel`` with no loss in performanc
2864
data = pd.read_excel('path_to_file.xls', ['Sheet1', 'Sheet2'],
2865
index_col=None, na_values=['NA'])
2866
2867
+If control is needed over how a file is read, an ``xlrd`` workbook
2868
+created with the desired keyword arguments can be passed to ``ExcelFile``.
2869
+
2870
+.. code-block:: python
2871
2872
+ xlrd_book = xlrd.open_workbook('path_to_file.xls', on_demand=True)
2873
+ with pd.ExcelFile(xlrd_book) as xls:
2874
+ df1 = pd.read_excel(xls, 'Sheet1')
2875
+ df2 = pd.read_excel(xls, 'Sheet2')
2876
2877
.. _io.excel.specifying_sheets:
2878
2879
Specifying Sheets
0 commit comments