Skip to content

Commit

Permalink
Update analysis.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro-gc95 authored Jul 12, 2024
1 parent 8834896 commit cad540c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rascal/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def clean_df(df):
"""
assert isinstance(df, pd.DataFrame), "df needs to be a pd.DataFrame"
df.dropna(inplace=True)
indices_to_keep = ~df.isin([np.nan, np.inf, -np.inf]).any(1)
indices_to_keep = ~df.isin([np.nan, np.inf, -np.inf]).any(axis=1)
return df[indices_to_keep].astype(np.float64)


Expand Down

0 comments on commit cad540c

Please sign in to comment.