19arjun89 commited on
Commit
596b6ec
·
verified ·
1 Parent(s): 392be50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- table_out = table_df.head(50).copy()
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)