Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,6 @@ def load_and_concat_data():
|
|
74 |
|
75 |
return filtered_df
|
76 |
|
77 |
-
@st.cache_data
|
78 |
def get_unique_values(df):
|
79 |
return {
|
80 |
'companies': df['company'].unique(),
|
@@ -102,7 +101,6 @@ def main():
|
|
102 |
elif page == "Data Explorer":
|
103 |
display_data_explorer(df)
|
104 |
|
105 |
-
@st.cache_data
|
106 |
def create_chart(data, _x, y, title, color_sequence):
|
107 |
fig = px.bar(data, x=_x, y=y, title=title, color_discrete_sequence=color_sequence)
|
108 |
fig.update_layout(plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)', font_color='#FFFFFF')
|
@@ -154,7 +152,7 @@ def filter_dataframe(df, companies, locations, job_types):
|
|
154 |
if job_types:
|
155 |
filtered_df = filtered_df[filtered_df['job_type'].isin(job_types)]
|
156 |
return filtered_df
|
157 |
-
|
158 |
def display_data_explorer(df):
|
159 |
st.subheader("Data Explorer")
|
160 |
|
|
|
74 |
|
75 |
return filtered_df
|
76 |
|
|
|
77 |
def get_unique_values(df):
|
78 |
return {
|
79 |
'companies': df['company'].unique(),
|
|
|
101 |
elif page == "Data Explorer":
|
102 |
display_data_explorer(df)
|
103 |
|
|
|
104 |
def create_chart(data, _x, y, title, color_sequence):
|
105 |
fig = px.bar(data, x=_x, y=y, title=title, color_discrete_sequence=color_sequence)
|
106 |
fig.update_layout(plot_bgcolor='rgba(0,0,0,0)', paper_bgcolor='rgba(0,0,0,0)', font_color='#FFFFFF')
|
|
|
152 |
if job_types:
|
153 |
filtered_df = filtered_df[filtered_df['job_type'].isin(job_types)]
|
154 |
return filtered_df
|
155 |
+
@st.cache_data
|
156 |
def display_data_explorer(df):
|
157 |
st.subheader("Data Explorer")
|
158 |
|