Corey Morris
commited on
Commit
•
8ef77e5
1
Parent(s):
28e8799
Completed loaded form csv
Browse files
app.py
CHANGED
@@ -9,10 +9,12 @@ import plotly.graph_objects as go
|
|
9 |
st.set_page_config(layout="wide")
|
10 |
|
11 |
def load_csv_data(file_path):
|
12 |
-
|
13 |
return pd.read_csv(file_path)
|
14 |
|
15 |
|
|
|
|
|
|
|
16 |
def plot_top_n(df, target_column, n=10):
|
17 |
top_n = df.nlargest(n, target_column)
|
18 |
|
@@ -127,6 +129,8 @@ st.markdown("""
|
|
127 |
# Load the data into memory
|
128 |
data_path = "result_data.csv" # Replace with your actual file path
|
129 |
data_df = load_csv_data(data_path)
|
|
|
|
|
130 |
|
131 |
filters = st.checkbox('Select Models and/or Evaluations')
|
132 |
|
|
|
9 |
st.set_page_config(layout="wide")
|
10 |
|
11 |
def load_csv_data(file_path):
|
|
|
12 |
return pd.read_csv(file_path)
|
13 |
|
14 |
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
def plot_top_n(df, target_column, n=10):
|
19 |
top_n = df.nlargest(n, target_column)
|
20 |
|
|
|
129 |
# Load the data into memory
|
130 |
data_path = "result_data.csv" # Replace with your actual file path
|
131 |
data_df = load_csv_data(data_path)
|
132 |
+
data_df.rename(columns={"Unnamed: 0": "Model Name"}, inplace=True)
|
133 |
+
data_df.set_index("Model Name", inplace=True)
|
134 |
|
135 |
filters = st.checkbox('Select Models and/or Evaluations')
|
136 |
|