We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e5196c commit 76f1919Copy full SHA for 76f1919
pandas/core/strings.py
@@ -2323,7 +2323,7 @@ def _legal_dtype(series):
2323
union_mask = np.logical_or.reduce(na_masks, axis=0)
2324
2325
# if there are any non-string, non-null values hidden within an object
2326
- # dtype, cat_core will fail; catch error and return better error.
+ # dtype, cat_core will fail; catch error and return with better message
2327
try:
2328
if na_rep is None and union_mask.any():
2329
# no na_rep means NaNs for all rows where any column has a NaN
0 commit comments