Skip to content

Commit 7626b8b

Browse files
committed
fix linting errors
1 parent 84efff6 commit 7626b8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6484,8 +6484,6 @@ def combiner(x, y):
64846484

64856485
if self.columns.equals(other.columns):
64866486

6487-
if self.empty and len(other) == other_idxlen:
6488-
return other.copy()
64896487
if self.index.equals(other.index):
64906488
return self.copy()
64916489
elif self.empty:
@@ -6504,7 +6502,11 @@ def combiner(x, y):
65046502
other_vals = other[col][diff_index]
65056503
new_dtype = find_common_type([this_vals.dtype, other_vals.dtype])
65066504

6507-
series = Series([this_vals.values[0]] * len(new_index), dtype=new_dtype, index=new_index)
6505+
series = Series(
6506+
[this_vals.values[0]] * len(new_index),
6507+
dtype=new_dtype,
6508+
index=new_index
6509+
)
65086510

65096511
series[self_index] = this_vals
65106512
series[diff_index] = other_vals

0 commit comments

Comments
 (0)