Skip to content

Commit d522438

Browse files
committed
GH 30975-Fix for Series.append(DataFrame) PEP-8 compliant
1 parent 8ea217f commit d522438

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/series.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,8 @@ def append(self, to_append, ignore_index=False, verify_integrity=False) -> "Seri
25392539
to_concat.extend(to_append)
25402540
else:
25412541
if not isinstance(to_append, type(self)):
2542-
msg = f"to_append should be a Series or list/tuple of Series, got {type(to_append)}"
2542+
msg = f"to_append should be a Series or list/tuple of Series, " \
2543+
f"got {type(to_append)}"
25432544
raise TypeError(msg)
25442545
to_concat = [self, to_append]
25452546
return self._ensure_type(

0 commit comments

Comments
 (0)