Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#1
by
sergiopaniego
HF Staff
- opened
app.py
CHANGED
@@ -33,7 +33,7 @@ df_main = df_orig.select(
|
|
33 |
# TODO: Fix this once https://github.com/gradio-app/gradio/issues/10916 is fixed # noqa: FIX002, TD002
|
34 |
# format numbers as strings
|
35 |
df_main = df_main.with_columns(
|
36 |
-
[pl.col(col).cast(pl.
|
37 |
)
|
38 |
|
39 |
df_main = df_main.rename(
|
|
|
33 |
# TODO: Fix this once https://github.com/gradio-app/gradio/issues/10916 is fixed # noqa: FIX002, TD002
|
34 |
# format numbers as strings
|
35 |
df_main = df_main.with_columns(
|
36 |
+
[pl.col(col).fill_null(0).cast(pl.Int64).alias(col) for col in ["upvotes", "num_comments"]]
|
37 |
)
|
38 |
|
39 |
df_main = df_main.rename(
|