Skip to content

Commit

Permalink
🐛 pandas pivot non-keyword arguments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed Jun 6, 2023
1 parent 18238c5 commit 9d033e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdlib/viz/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def plot_sim_matrix(
c2ID = c2.get_description()
forDF.append([cID, c2ID, scoring(c, c2).score])
df = pd.DataFrame(columns=["com1", "com2", "score"], data=forDF)
df = df.pivot("com1", "com2", "score")
df = df.pivot(index="com1", columns="com2", values="score")
return sns.clustermap(df)


Expand Down

0 comments on commit 9d033e1

Please sign in to comment.