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 76299b5 commit 0862f02Copy full SHA for 0862f02
pandas/compat/__init__.py
@@ -185,6 +185,10 @@ def u(s):
185
def u(s):
186
return unicode(s, "unicode_escape")
187
188
+
189
+string_and_binary_types = string_types + (binary_type,)
190
191
192
try:
193
# callable reintroduced in later versions of Python
194
callable = callable
pandas/core/common.py
@@ -1613,7 +1613,7 @@ def _is_sequence(x):
1613
1614
iter(x)
1615
len(x) # it has a length
1616
- return not isinstance(x, compat.string_types + (compat.binary_type,))
+ return not isinstance(x, compat.string_and_binary_types)
1617
except (TypeError, AttributeError):
1618
return False
1619
0 commit comments