yashm commited on
Commit
6cba983
·
verified ·
1 Parent(s): 44fcdc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -172,7 +172,22 @@ main() # Call the main function to run the app
172
  """
173
  return code
174
 
175
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  def generate_requirements(selected_tasks):
178
  # Set to store all unique required libraries
 
172
  """
173
  return code
174
 
175
+ # Define required libraries for each predefined analysis task
176
+ TASK_REQUIREMENTS = {
177
+ "Basic Statistics": ["pandas", "streamlit"],
178
+ "Correlation Heatmap": ["pandas", "streamlit", "seaborn"],
179
+ "Histogram": ["pandas", "streamlit", "plotly"],
180
+ "Box Plot": ["pandas", "streamlit", "plotly"],
181
+ "Scatter Plot": ["pandas", "streamlit", "plotly"],
182
+ "Line Plot": ["pandas", "streamlit", "plotly"],
183
+ "Bar Chart": ["pandas", "streamlit", "plotly"],
184
+ "Pair Plot": ["pandas", "streamlit", "seaborn"],
185
+ "Distribution Plot": ["pandas", "streamlit", "seaborn"],
186
+ "Count Plot": ["pandas", "streamlit", "seaborn"],
187
+ "Pie Chart": ["pandas", "streamlit", "plotly"],
188
+ "Area Plot": ["pandas", "streamlit", "plotly"],
189
+ "Violin Plot": ["pandas", "streamlit", "plotly"]
190
+ }
191
 
192
  def generate_requirements(selected_tasks):
193
  # Set to store all unique required libraries