Arts-of-coding commited on
Commit
21ce9fe
·
verified ·
1 Parent(s): 2f4c44d

Update pages/integratedsuture.py

Browse files
Files changed (1) hide show
  1. pages/integratedsuture.py +1 -1
pages/integratedsuture.py CHANGED
@@ -453,7 +453,7 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
453
  .then(pl.col('len') / pl.col('total')*100)
454
  .otherwise(None).alias("%"),
455
  ])
456
- result = result.with_columns(pl.col("%").fill_null(100))
457
  dff_5[["percentage"]] = result[["%"]]
458
  dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
459
 
 
453
  .then(pl.col('len') / pl.col('total')*100)
454
  .otherwise(None).alias("%"),
455
  ])
456
+ result = result.with_columns(pl.col("%").fill_null(0))
457
  dff_5[["percentage"]] = result[["%"]]
458
  dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
459