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 e3cefee commit e24957dCopy full SHA for e24957d
pandas/io/excel/_odfreader.py
@@ -1,4 +1,5 @@
1
import pandas
2
+from pandas import compat
3
from pandas.io.parsers import TextParser
4
5
@@ -37,7 +38,7 @@ def get_sheet_by_name(self, name):
37
38
def get_sheet(self, name):
39
"""Given a sheet name or index, return the root ODF Table node
40
"""
- if isinstance(name, str):
41
+ if isinstance(name, compat.string_types):
42
return self.get_sheet_by_name(name)
43
elif isinstance(name, int):
44
return self.get_sheet_by_index(name)
0 commit comments