Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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):
|