Skip to content

Commit c6cb4b9

Browse files
committed
remove "!" on the error message
1 parent 9ef9fe8 commit c6cb4b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _validate(data):
256256

257257
if inferred_dtype not in allowed_types:
258258
raise AttributeError(
259-
f"Can only use .str accessor with string values!, not {inferred_dtype}"
259+
f"Can only use .str accessor with string values, not {inferred_dtype}"
260260
)
261261
return inferred_dtype
262262

0 commit comments

Comments
 (0)