Skip to content

Commit

Permalink
Update heatcluster.py
Browse files Browse the repository at this point in the history
Changed df.applymap to df.map. Dataframe object has no applymap method.
  • Loading branch information
DrB-S authored May 15, 2024
1 parent ea102da commit a8a37bb
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 @@ -109,7 +109,7 @@ def determine_heatmap_size(df, SNPmatrix):
##df = df.sort("0").collect()
##df = df.drop_nulls().collect()

labels = df.applymap(lambda v: '10K+' if v > 10000 else v)
labels = df.map(lambda v: '10K+' if v > 10000 else v)
"""
Save sorted csv SNP matrix
"""
Expand Down

0 comments on commit a8a37bb

Please sign in to comment.