Skip to content

Commit 6c677bc

Browse files
committed
Update accessor.py
1 parent c872a8b commit 6c677bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/strings/accessor.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,7 @@ def cat(
569569

570570
# concatenate Series/Index with itself if no "others"
571571
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]
572+
data = Series(ensure_object(data))
575573
na_mask = isna(data)
576574
if na_rep is None and na_mask.any():
577575
return sep.join(data[~na_mask])

0 commit comments

Comments
 (0)