Like the doc says, pd.read_excel(..., sheet_name=...)
parameter allows you to specify a list of names, or list of indices. So just list all the sheets you want to import.
UPDATE: the parameter is sheet_name
, there's no parameter exclude_sheet_name
, so yes if you don't know the list of names/indices of the sheets you do want to read, you'll have to pd.read_excel()
twice, and yes that can be time-consuming for huge sheets. If you don't like that, file an enhance request on pandas. Also, 'sheet_name'(/'exclude_sheet_name) can currently only be names or indices, not a regex. Either/both of those would be legit enhance requests.
sheet_name str, int, list, or None
, default 0
Strings are used for sheet names. Integers are used in zero-indexed sheet positions. Lists of strings/integers are used to request multiple sheets. Specify None
to get all sheets.