Skip to content

Commit

Permalink
Avoid deprecation warnings on fillna
Browse files Browse the repository at this point in the history
  • Loading branch information
carlogrisetti committed Sep 18, 2023
1 parent 42723e3 commit 9a47034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludwig/utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def add_sequence_feature_column(df, col_name, seq_length):
new_data.append(" ".join(str(j) for j in old_data[i - seq_length : i]))

df[new_col_name] = new_data
df[new_col_name] = df[new_col_name].fillna(method="bfill")
df[new_col_name] = df[new_col_name].bfill()


@DeveloperAPI
Expand Down

0 comments on commit 9a47034

Please sign in to comment.