Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00f2a97

Browse files
author
y-p
committed
BUG: TextReader._explicit_index_names() should allow for unicode index_name
1 parent f24f772 commit 00f2a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def _explicit_index_names(self, columns):
749749
else:
750750
index_name = columns[self.index_col]
751751

752-
if index_name is not None and 'Unnamed' in str(index_name):
752+
if index_name is not None and 'Unnamed' in unicode(index_name):
753753
index_name = None
754754

755755
elif self.index_col is not None:

0 commit comments

Comments
 (0)