jsulz HF staff commited on
Commit
f039c3d
·
1 Parent(s): 502fa70

filtering data

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +1 -0
README.md CHANGED
@@ -41,6 +41,8 @@ All of this needs context needs to live in the app in some form alongside the co
41
 
42
  All of the labels and words that do exist need cleanup. Not worried about that for the moment.
43
 
 
 
44
  # Spaces Overview
45
 
46
  Charts exist for the following (commentary for each in sub-bullets):
 
41
 
42
  All of the labels and words that do exist need cleanup. Not worried about that for the moment.
43
 
44
+ The charts filter out all non-running spaces, which is suboptimal. Unfortunately Plotly starts to squak when you have too many data points. The only alternative here is to move to Matplotlib, which I can do, but I'm being lazy.
45
+
46
  # Spaces Overview
47
 
48
  Charts exist for the following (commentary for each in sub-bullets):
app.py CHANGED
@@ -198,6 +198,7 @@ def flatten_column(_df, column):
198
 
199
  with gr.Blocks(fill_width=True) as demo:
200
  df = load_transform_data()
 
201
  with gr.Tab(label="Spaces Overview"):
202
 
203
  # The Pandas dataframe has a datetime column. Plot the growth of spaces (row entries) over time.
 
198
 
199
  with gr.Blocks(fill_width=True) as demo:
200
  df = load_transform_data()
201
+ df = df[df["stage"] == "RUNNING"]
202
  with gr.Tab(label="Spaces Overview"):
203
 
204
  # The Pandas dataframe has a datetime column. Plot the growth of spaces (row entries) over time.