aalkaswan commited on
Commit
93b2958
·
verified ·
1 Parent(s): c838e94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -165,10 +165,17 @@ def plot_scatter_tab5(cat, x, y, z, col):
165
  pivot_df[col] = pivot_df["model"].str.split("/").str[0]
166
 
167
  print("DEBUG: unique color values:", pivot_df[col].unique())
168
- fig = px.scatter_3d(pivot_df, x=x, y=y, z=z, hover_name="model", title=f'{x} vs {y} vs {z}', color=col)
 
 
 
 
 
 
169
  return fig
170
 
171
 
 
172
  # Tab 6
173
  data_with_text = pd.read_csv("./tagged_data_with_text.csv")
174
  def random_sample(r: gr.Request):
 
165
  pivot_df[col] = pivot_df["model"].str.split("/").str[0]
166
 
167
  print("DEBUG: unique color values:", pivot_df[col].unique())
168
+ print("H>0:", (pivot_df['H'] > 0).sum())
169
+ print("R>0:", (pivot_df['R'] > 0).sum())
170
+ print("A>0:", (pivot_df['A'] > 0).sum())
171
+ print("Any NaN?", pivot_df[['H','R','A']].isna().any().any())
172
+ print("First ten:", pivot_df[['model', 'H','R','A','Organisation']].head(10))
173
+ fig = px.scatter_3d(pivot_df, x='H', y='R', z='A', hover_name="model", color='Organisation')
174
+ fig.write_html("test_plot.html")
175
  return fig
176
 
177
 
178
+
179
  # Tab 6
180
  data_with_text = pd.read_csv("./tagged_data_with_text.csv")
181
  def random_sample(r: gr.Request):