Spaces:
Sleeping
Sleeping
Update pages/integratedsuture.py
Browse files
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(
|
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 |
|