Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,9 +162,7 @@ def build_report():
|
|
| 162 |
f"Countries (table): {len(table_df):,}\n"
|
| 163 |
f"Total usage events: {int(table_df['usage events'].sum()) if len(table_df) else 0:,}"
|
| 164 |
)
|
| 165 |
-
|
| 166 |
-
table_out.insert(0, "refreshed_at_utc", pd.Timestamp.utcnow().strftime("%Y-%m-%d %H:%M:%S"))
|
| 167 |
-
return fig, table_out, summary
|
| 168 |
|
| 169 |
# Mapbox choropleth using GeoJSON
|
| 170 |
px.set_mapbox_access_token(MAPBOX_TOKEN)
|
|
|
|
| 162 |
f"Countries (table): {len(table_df):,}\n"
|
| 163 |
f"Total usage events: {int(table_df['usage events'].sum()) if len(table_df) else 0:,}"
|
| 164 |
)
|
| 165 |
+
return fig, table_df.head(50), summary
|
|
|
|
|
|
|
| 166 |
|
| 167 |
# Mapbox choropleth using GeoJSON
|
| 168 |
px.set_mapbox_access_token(MAPBOX_TOKEN)
|