Skip to content

Commit

Permalink
Update heatcluster.py
Browse files Browse the repository at this point in the history
Line 165: #df.replace([np.inf, -np.inf], np.nan)
  • Loading branch information
DrB-S authored Feb 1, 2024
1 parent 80c73a0 commit 926f268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heatcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def determine_heatmap_size(df, SNPmatrix):
logging.debug('Sorting dataframe and removing empty rows/columns')
#df = df.loc[df.sum(axis=1).sort_values(ascending=True).index]

df.replace([np.inf, -np.inf], np.nan)
#df.replace([np.inf, -np.inf], np.nan)
df.dropna()

"""
Expand Down

0 comments on commit 926f268

Please sign in to comment.