Skip to content

Commit

Permalink
remove "!" on the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KevsterAmp committed Oct 22, 2024
1 parent 9ef9fe8 commit c6cb4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def _validate(data):

if inferred_dtype not in allowed_types:
raise AttributeError(
f"Can only use .str accessor with string values!, not {inferred_dtype}"
f"Can only use .str accessor with string values, not {inferred_dtype}"
)
return inferred_dtype

Expand Down

0 comments on commit c6cb4b9

Please sign in to comment.