Skip to content

Commit 51877c8

Browse files
author
y-p
committed
BUG: df.ix[:,unicode] should not die with UnicodeEncodeError
1 parent f6ca3e3 commit 51877c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def _find_block(self, item):
935935

936936
def _check_have(self, item):
937937
if item not in self.items:
938-
raise KeyError('no item named %s' % str(item))
938+
raise KeyError('no item named %s' % com.pprint_thing(item))
939939

940940
def reindex_axis(self, new_axis, method=None, axis=0, copy=True):
941941
new_axis = _ensure_index(new_axis)

0 commit comments

Comments
 (0)