Skip to content

Commit

Permalink
Update heatcluster.py
Browse files Browse the repository at this point in the history
Changed df.map to df.apply for polars dataframe
  • Loading branch information
DrB-S authored May 15, 2024
1 parent c3d887b commit 5a9c65c
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.map(lambda v: '10K+' if v > 10000 else v)
labels = df.apply(lambda v: '10K+' if v > 10000 else v)
"""
Save sorted csv SNP matrix
"""
Expand Down

0 comments on commit 5a9c65c

Please sign in to comment.