Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,13 @@ df_main = df_orig.select(
|
|
58 |
)
|
59 |
|
60 |
df_main = df_main.with_columns(
|
61 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
)
|
63 |
|
64 |
df_main = df_main.rename(
|
|
|
58 |
)
|
59 |
|
60 |
df_main = df_main.with_columns(
|
61 |
+
[
|
62 |
+
pl.when(pl.col(col) == "").then(None).otherwise(pl.col(col))
|
63 |
+
.cast(pl.Int64)
|
64 |
+
.fill_null(0)
|
65 |
+
.alias(col)
|
66 |
+
for col in ["upvotes", "num_comments"]
|
67 |
+
]
|
68 |
)
|
69 |
|
70 |
df_main = df_main.rename(
|