We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13cdd11 commit d206181Copy full SHA for d206181
pandas/core/strings/accessor.py
@@ -252,7 +252,7 @@ def _validate(data):
252
inferred_dtype = lib.infer_dtype(values, skipna=True)
253
254
if inferred_dtype not in allowed_types:
255
- raise AttributeError("Can only use .str accessor with string values!")
+ raise AttributeError(f"Can only use .str accessor with string values! Inferred dType: {inferred_dtype}")
256
return inferred_dtype
257
258
def __getitem__(self, key):
0 commit comments