We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c872a8b commit 6c677bcCopy full SHA for 6c677bc
pandas/core/strings/accessor.py
@@ -569,9 +569,7 @@ def cat(
569
570
# concatenate Series/Index with itself if no "others"
571
if others is None:
572
- # error: Incompatible types in assignment (expression has type
573
- # "ndarray", variable has type "Series")
574
- data = ensure_object(data) # type: ignore[assignment]
+ data = Series(ensure_object(data))
575
na_mask = isna(data)
576
if na_rep is None and na_mask.any():
577
return sep.join(data[~na_mask])
0 commit comments