We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 388ecf3 commit 21b7dafCopy full SHA for 21b7daf
pandas/core/arrays/masked.py
@@ -257,7 +257,9 @@ def _validate_setitem_value(self, value):
257
return value
258
# TODO: unsigned checks
259
260
- raise TypeError(f"Invalid value '{value}' for dtype {self.dtype}")
+ # Note: without the "str" here, the f-string rendering raises in
261
+ # py38 builds.
262
+ raise TypeError(f"Invalid value '{str(value)}' for dtype {self.dtype}")
263
264
def __setitem__(self, key, value) -> None:
265
key = check_array_indexer(self, key)
0 commit comments