Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def load_and_concat_data():
|
|
73 |
filtered_df = filtered_df.drop_duplicates()
|
74 |
|
75 |
return filtered_df
|
76 |
-
|
77 |
def get_unique_values(df):
|
78 |
return {
|
79 |
'companies': df['company'].unique(),
|
@@ -152,7 +152,7 @@ def filter_dataframe(df, companies, locations, job_types):
|
|
152 |
if job_types:
|
153 |
filtered_df = filtered_df[filtered_df['job_type'].isin(job_types)]
|
154 |
return filtered_df
|
155 |
-
|
156 |
def display_data_explorer(df):
|
157 |
st.subheader("Data Explorer")
|
158 |
|
|
|
73 |
filtered_df = filtered_df.drop_duplicates()
|
74 |
|
75 |
return filtered_df
|
76 |
+
@st.cache_data()
|
77 |
def get_unique_values(df):
|
78 |
return {
|
79 |
'companies': df['company'].unique(),
|
|
|
152 |
if job_types:
|
153 |
filtered_df = filtered_df[filtered_df['job_type'].isin(job_types)]
|
154 |
return filtered_df
|
155 |
+
|
156 |
def display_data_explorer(df):
|
157 |
st.subheader("Data Explorer")
|
158 |
|