Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -447,14 +447,8 @@ def server(input, output, session):
|
|
| 447 |
'tj_stuff_plus': 'tjStuff+'
|
| 448 |
}))
|
| 449 |
|
| 450 |
-
brushed_df_final.
|
| 451 |
-
|
| 452 |
-
.cast(pl.Float64, strict=False) # Convert strings to floats, invalid parsing becomes null
|
| 453 |
-
.fill_nan(None) # Convert NaNs to null
|
| 454 |
-
.fill_null(0) # Replace nulls with 0
|
| 455 |
-
.round(0) # Round the valid numeric values
|
| 456 |
-
.alias("Spin")
|
| 457 |
-
)
|
| 458 |
|
| 459 |
# brushed_df_final = brushed_df_final
|
| 460 |
|
|
@@ -467,7 +461,7 @@ def server(input, output, session):
|
|
| 467 |
''
|
| 468 |
return "font-weight: bold;"
|
| 469 |
|
| 470 |
-
df_brush_style = (
|
| 471 |
|
| 472 |
.set_properties(**{'border': '3 px'},overwrite=False).set_table_styles([{
|
| 473 |
'selector': 'caption',
|
|
|
|
| 447 |
'tj_stuff_plus': 'tjStuff+'
|
| 448 |
}))
|
| 449 |
|
| 450 |
+
brushed_df_final_pd = brushed_df_final.to_pandas()
|
| 451 |
+
brushed_df_final_pd['Spin'] = brushed_df_final_pd['Spin'].fillna(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
|
| 453 |
# brushed_df_final = brushed_df_final
|
| 454 |
|
|
|
|
| 461 |
''
|
| 462 |
return "font-weight: bold;"
|
| 463 |
|
| 464 |
+
df_brush_style = (brushed_df_final_pd.style.set_precision(1)
|
| 465 |
|
| 466 |
.set_properties(**{'border': '3 px'},overwrite=False).set_table_styles([{
|
| 467 |
'selector': 'caption',
|