Skip to content

Commit 7c4d14a

Browse files
committed
fixup! BUG: Handle sheetname deprecation directly
1 parent 53b433a commit 7c4d14a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/excel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def read_excel(io, sheet_name=0, header=0, skiprows=None, skip_footer=0,
203203
squeeze=False, **kwds):
204204

205205
# Can't use _deprecate_kwarg since sheetname=None has a special meaning
206-
if sheet_name is 0 and 'sheetname' in kwds:
206+
if is_integer(sheet_name) and sheet_name == 0 and 'sheetname' in kwds:
207207
# deprecation warning
208208
warnings.warn("The `sheetname` keyword is deprecated, use "
209209
"`sheet_name` instead", FutureWarning)

0 commit comments

Comments
 (0)