Skip to content

Commit a46d9ce

Browse files
author
y-p
committed
use basestring rather then (unicode,str) in isinstance
1 parent 4c91c62 commit a46d9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ def info(self, verbose=True, buf=None):
13661366
counts = self.count()
13671367
assert(len(cols) == len(counts))
13681368
for col, count in counts.iteritems():
1369-
if not isinstance(col, (unicode, str)):
1369+
if not isinstance(col, basestring):
13701370
col = str(col)
13711371
lines.append(_put_str(col, space) +
13721372
'%d non-null values' % count)

0 commit comments

Comments
 (0)