Arts-of-coding
commited on
Commit
•
d9d98dc
1
Parent(s):
2d13546
Update pages/corg.py
Browse files- pages/corg.py +1 -1
pages/corg.py
CHANGED
@@ -402,7 +402,7 @@ def update_graph_and_pie_chart(col_chosen, s_chosen, g2m_chosen, condition1_chos
|
|
402 |
.then(pl.col('len') / pl.col('total')*100)
|
403 |
.otherwise(None).alias("%"),
|
404 |
])
|
405 |
-
result = result.with_columns(pl.col("%").fill_null(
|
406 |
dff_5[["percentage"]] = result[["%"]]
|
407 |
dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
|
408 |
|
|
|
402 |
.then(pl.col('len') / pl.col('total')*100)
|
403 |
.otherwise(None).alias("%"),
|
404 |
])
|
405 |
+
result = result.with_columns(pl.col("%").fill_null(0))
|
406 |
dff_5[["percentage"]] = result[["%"]]
|
407 |
dff_5 = dff_5.select(pl.col(col_chosen,"Gene","percentage"))
|
408 |
|