Skip to content

Commit 2d75591

Browse files
author
y-p
committed
BUG: use pprint_thing() rather then str()
1 parent f2db4c1 commit 2d75591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,8 @@ def _apply_standard(self, func, axis, ignore_failures=False):
39153915
try:
39163916
if hasattr(e, 'args'):
39173917
k = res_index[i]
3918-
e.args = e.args + ('occurred at index %s' % str(k),)
3918+
e.args = e.args + ('occurred at index %s' %
3919+
com.pprint_thing(k),)
39193920
except (NameError, UnboundLocalError): # pragma: no cover
39203921
# no k defined yet
39213922
pass

0 commit comments

Comments
 (0)