Skip to content

Commit d3c3236

Browse files
committed
add comment
1 parent c8f4f72 commit d3c3236

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/internals/blocks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ def replace(self, to_replace, value, inplace=False, filter=None,
801801
copy=not inplace) for b in blocks]
802802
return blocks
803803
except (TypeError, ValueError):
804+
# GH 22083, TypeError or ValueError occurred within error handling
805+
# causes infinite loop. Cast and retry only if not objectblock.
804806
if self.dtype == 'object':
805807
raise
806808
else:

0 commit comments

Comments
 (0)