mohsenfayyaz commited on
Commit
0acf0dc
·
verified ·
1 Parent(s): ad1d5eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -238,6 +238,7 @@ def plot_users_disks(topk_to_show=5):
238
  df["server_path"] = df["server_path"].apply(
239
  lambda x: x.replace(".cs.ucla.edu", "")
240
  )
 
241
  df = df[df["path"] != "home"]
242
 
243
  # Ensure numeric
@@ -322,7 +323,7 @@ def plot_users_disks(topk_to_show=5):
322
  yaxis_title="server_path",
323
  )
324
 
325
- return fig, df
326
 
327
 
328
  ##### PLOT ALL #####
 
238
  df["server_path"] = df["server_path"].apply(
239
  lambda x: x.replace(".cs.ucla.edu", "")
240
  )
241
+ df_return = df.copy()
242
  df = df[df["path"] != "home"]
243
 
244
  # Ensure numeric
 
323
  yaxis_title="server_path",
324
  )
325
 
326
+ return fig, df_return
327
 
328
 
329
  ##### PLOT ALL #####