Arts-of-coding commited on
Commit
080ed7e
1 Parent(s): d9d98dc

Update pages/d101110xflex.py

Browse files
Files changed (1) hide show
  1. pages/d101110xflex.py +1 -1
pages/d101110xflex.py CHANGED
@@ -404,7 +404,7 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
404
  .then(pl.col('len') / pl.col('total')*100)
405
  .otherwise(None).alias("%"),
406
  ])
407
- result = result.with_columns(pl.col("%").fill_null(100))
408
  dff_5[["percentage"]] = result[["%"]]
409
  dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
410
 
 
404
  .then(pl.col('len') / pl.col('total')*100)
405
  .otherwise(None).alias("%"),
406
  ])
407
+ result = result.with_columns(pl.col("%").fill_null(0))
408
  dff_5[["percentage"]] = result[["%"]]
409
  dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
410