Skip to content

Commit 08fe78c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1423129 commit 08fe78c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

janitor/functions/concatenate_columns.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ def concatenate_columns(
5353

5454
df = df.copy() # avoid mutating original data
5555
df[new_column_name] = (
56-
df[column_names]
57-
.astype("string")
58-
.fillna("")
59-
.agg(sep.join, axis=1)
56+
df[column_names].astype("string").fillna("").agg(sep.join, axis=1)
6057
)
6158

6259
if ignore_empty:

0 commit comments

Comments
 (0)