Skip to content

Commit

Permalink
Merge pull request pvcaptest#109 from bt-/pandas-fillna-deprecated
Browse files Browse the repository at this point in the history
Replaces use of fillna with ffill
  • Loading branch information
bt- committed May 6, 2024
2 parents 2d32dfc + fef4941 commit 67c7414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/captest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def load_excel_column_groups(path):
dict
Dictionary mapping column group names to lists of column names.
"""
df = pd.read_excel(path, header=None).fillna(method="ffill")
df = pd.read_excel(path, header=None).ffill(axis='index')
return df.groupby(0)[1].apply(list).to_dict()


Expand Down

0 comments on commit 67c7414

Please sign in to comment.