CosmickVisions commited on
Commit
3ce1776
·
verified ·
1 Parent(s): 839e374

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +79 -44
app.py CHANGED
@@ -19,70 +19,73 @@ st.set_page_config(page_title="Data Wizard Pro", layout="wide", page_icon="🧙"
19
  st.markdown(
20
  """
21
  <style>
 
22
  body {
23
  background-color: #0a0a1a; /* Dark background */
24
  color: #e0e0ff; /* Light text */
25
  font-family: 'Courier New', monospace; /* Monospace font */
26
  }
27
- .st-emotion-cache-16idsys {
28
- background-color: #1e1e30; /* Darker shades for elements */
29
- border-radius: 10px; /* Rounded corners */
30
- padding: 1rem;
31
- margin-bottom: 1rem;
32
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
33
- }
34
- .st-emotion-cache-1v0mbdj {
35
- background-color: #1e1e30; /* Darker shades for elements */
36
- border-radius: 10px; /* Rounded corners */
37
- padding: 1rem;
38
- margin-bottom: 1rem;
39
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
40
  }
41
- .st-emotion-cache-1wrcr25 {
 
 
 
 
 
 
 
 
42
  background-color: #1e1e30; /* Darker shades for elements */
43
  border-radius: 10px; /* Rounded corners */
44
  padding: 1rem;
45
  margin-bottom: 1rem;
46
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
 
47
  }
48
- .st-emotion-cache-607q0z, .st-emotion-cache-1v0mbdj, .st-emotion-cache-1v3fvcr, .st-emotion-cache-16idsys{
49
- background-color: #1e1e30 !important; /* Darker shades for elements */
50
- border-radius: 10px; /* Rounded corners */
51
- padding: 1rem !important;
52
- margin-bottom: 1rem;
53
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
54
- color: #e0e0ff !important;
55
- }
56
-
57
- .st-bb { /* Sidebar */
58
  background-color: #141422; /* Dark sidebar background */
59
  padding: 20px;
60
  border-radius: 10px;
61
  }
 
 
62
  h1, h2, h3, h4, h5, h6, .st-bb {
63
  color: #00f7ff; /* Cyan color for headers */
64
  }
65
- .st-cb, .st-ci, .st-cj, .st-ch { /* Selectbox and Buttons*/
 
 
66
  background-color: #141422; /* Dark selectbox background */
67
  color: #00f7ff !important; /* Cyan text color */
68
  border: 1px solid #00f7ff; /* Cyan border */
69
  }
70
- .st-cv { /* Selectbox text */
71
- color: #00f7ff !important; /* Cyan color for headers */
 
 
72
  }
73
-
74
- .st-cr { /* number input and text input*/
75
- background-color: #141422 !important; /* Dark selectbox background */
 
76
  color: #00f7ff !important; /* Cyan text color */
77
  border: 1px solid #00f7ff !important; /* Cyan border */
78
  }
79
-
80
- .st-cw { /* Slider */
81
- background-color: #141422 !important; /* Dark selectbox background */
 
82
  border: 1px solid #00f7ff !important; /* Cyan border */
83
  }
84
-
85
- .st-bz, .st-b0{ /* Buttons*/
 
86
  background-color: #141422; /* Darker Button background */
87
  color: #00f7ff; /* Cyan text color */
88
  border: 1px solid #00f7ff; /* Cyan border */
@@ -92,19 +95,44 @@ st.markdown(
92
  background-color: #00f7ff; /* Hover color */
93
  color: #0a0a1a; /* Hover text color */
94
  }
95
- .st-ae { /* File uploader*/
96
- background-color: #141422 !important; /* Dark selectbox background */
 
 
97
  color: #00f7ff !important; /* Cyan text color */
98
  border: 1px solid #00f7ff !important; /* Cyan border */
99
  border-radius: 10px; /* Rounded corners */
100
  }
101
- .st-emotion-cache-10trblm { /* Metrics*/
102
- background-color: #1e1e30 !important; /* Darker shades for elements */
 
103
  border-radius: 10px !important; /* Rounded corners */
104
- padding: 1rem !important;
105
- margin-bottom: 1rem !important;
106
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important; /* Enhanced shadow */
107
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  /* Add more styling for other elements as needed */
109
  </style>
110
  """,
@@ -259,13 +287,19 @@ elif app_mode == "Advanced EDA":
259
  elif plot_type == "Scatter Plot":
260
  fig = px.scatter(df, x=x_col, y=y_col, color_discrete_sequence=['#00f7ff'])
261
  elif plot_type == "3D Scatter":
262
- fig = px.scatter_3d(df, x=x_col, y=y_col, z=z_col)
263
  elif plot_type == "Correlation Heatmap":
264
  corr = df.corr()
265
- fig = px.imshow(corr, text_auto=True, color_continuous_scale='Viridis')
266
  elif plot_type == "Box Plot":
267
  fig = px.box(df,x=x_col, y=y_col, color_discrete_sequence=['#00f7ff'])
268
 
 
 
 
 
 
 
269
  st.plotly_chart(fig, use_container_width=True)
270
 
271
  # Model Training Section
@@ -363,7 +397,7 @@ elif app_mode == "Visualization Lab":
363
  fig = px.imshow(corr, text_auto=True, color_continuous_scale='RdBu')
364
  st.plotly_chart(fig, use_container_width=True)
365
 
366
- elif viz_type == "Time Series Analysis":
367
  # Basic time series plot
368
  time_col = st.selectbox("Time Column", df.columns)
369
  value_col = st.selectbox("Value Column", df.columns)
@@ -372,3 +406,4 @@ elif app_mode == "Visualization Lab":
372
 
373
  elif viz_type == "Cluster Analysis":
374
  st.write("Cluster Analysis Feature Coming Soon!") # placeholder for future development
 
 
19
  st.markdown(
20
  """
21
  <style>
22
+ /* Overall body styling */
23
  body {
24
  background-color: #0a0a1a; /* Dark background */
25
  color: #e0e0ff; /* Light text */
26
  font-family: 'Courier New', monospace; /* Monospace font */
27
  }
28
+
29
+ /* Main content area */
30
+ .stApp {
31
+ background-color: #0a0a1a; /* Match body background */
 
 
 
 
 
 
 
 
 
32
  }
33
+
34
+ /* Containers and blocks */
35
+ .st-emotion-cache-16idsys,
36
+ .st-emotion-cache-1v0mbdj,
37
+ .st-emotion-cache-1wrcr25,
38
+ .st-emotion-cache-607q0z,
39
+ .st-emotion-cache-1v3fvcr,
40
+ .st-emotion-cache-10trblm,
41
+ section.main > div {
42
  background-color: #1e1e30; /* Darker shades for elements */
43
  border-radius: 10px; /* Rounded corners */
44
  padding: 1rem;
45
  margin-bottom: 1rem;
46
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
47
+ color: #e0e0ff; /* Light text color */
48
  }
49
+
50
+ /* Sidebar */
51
+ .st-bb {
 
 
 
 
 
 
 
52
  background-color: #141422; /* Dark sidebar background */
53
  padding: 20px;
54
  border-radius: 10px;
55
  }
56
+
57
+ /* Headers */
58
  h1, h2, h3, h4, h5, h6, .st-bb {
59
  color: #00f7ff; /* Cyan color for headers */
60
  }
61
+
62
+ /* Selectboxes and Buttons */
63
+ .st-cb, .st-ci, .st-cj, .st-ch {
64
  background-color: #141422; /* Dark selectbox background */
65
  color: #00f7ff !important; /* Cyan text color */
66
  border: 1px solid #00f7ff; /* Cyan border */
67
  }
68
+
69
+ /* Selectbox text */
70
+ .st-cv {
71
+ color: #00f7ff !important; /* Cyan color for selectbox text */
72
  }
73
+
74
+ /* Number input and text input */
75
+ .st-cr {
76
+ background-color: #141422 !important; /* Dark input background */
77
  color: #00f7ff !important; /* Cyan text color */
78
  border: 1px solid #00f7ff !important; /* Cyan border */
79
  }
80
+
81
+ /* Slider */
82
+ .st-cw {
83
+ background-color: #141422 !important; /* Dark slider background */
84
  border: 1px solid #00f7ff !important; /* Cyan border */
85
  }
86
+
87
+ /* Buttons */
88
+ .st-bz, .st-b0 {
89
  background-color: #141422; /* Darker Button background */
90
  color: #00f7ff; /* Cyan text color */
91
  border: 1px solid #00f7ff; /* Cyan border */
 
95
  background-color: #00f7ff; /* Hover color */
96
  color: #0a0a1a; /* Hover text color */
97
  }
98
+
99
+ /* File uploader */
100
+ .st-ae {
101
+ background-color: #141422 !important; /* Dark file uploader background */
102
  color: #00f7ff !important; /* Cyan text color */
103
  border: 1px solid #00f7ff !important; /* Cyan border */
104
  border-radius: 10px; /* Rounded corners */
105
  }
106
+
107
+ /* Metric */
108
+ .st-emotion-cache-10trblm {
109
  border-radius: 10px !important; /* Rounded corners */
 
 
110
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important; /* Enhanced shadow */
111
  }
112
+
113
+ /* Dataframes and tables */
114
+ .dataframe {
115
+ background-color: #1e1e30 !important; /* Dark table background */
116
+ color: #e0e0ff !important; /* Light text in tables */
117
+ border: 1px solid #00f7ff !important; /* Cyan border for tables */
118
+ }
119
+
120
+ .dataframe tr:nth-child(odd) {
121
+ background-color: #141422 !important; /* Alternating row color */
122
+ }
123
+
124
+ /* Expanders*/
125
+ .st-emotion-cache-10oheav {
126
+ color: #00f7ff !important; /* Cyan text color */
127
+ }
128
+ .st-emotion-cache-r421ms {
129
+ color: #e0e0ff !important; /* Light text color */
130
+ }
131
+ /* Correcting the issue with Plotly charts */
132
+ .plotly-graph-div {
133
+ background-color: #1e1e30 !important; /* Dark background for Plotly charts */
134
+ border-radius: 10px;
135
+ }
136
  /* Add more styling for other elements as needed */
137
  </style>
138
  """,
 
287
  elif plot_type == "Scatter Plot":
288
  fig = px.scatter(df, x=x_col, y=y_col, color_discrete_sequence=['#00f7ff'])
289
  elif plot_type == "3D Scatter":
290
+ fig = px.scatter_3d(df, x=x_col, y=y_col, z=z_col, color=x_col)
291
  elif plot_type == "Correlation Heatmap":
292
  corr = df.corr()
293
+ fig = px.imshow(corr, text_auto=True, color_continuous_scale='RdBu')
294
  elif plot_type == "Box Plot":
295
  fig = px.box(df,x=x_col, y=y_col, color_discrete_sequence=['#00f7ff'])
296
 
297
+ fig.update_layout(
298
+ plot_bgcolor="#1e1e30",
299
+ paper_bgcolor="#1e1e30",
300
+ font_color="#e0e0ff"
301
+ )
302
+
303
  st.plotly_chart(fig, use_container_width=True)
304
 
305
  # Model Training Section
 
397
  fig = px.imshow(corr, text_auto=True, color_continuous_scale='RdBu')
398
  st.plotly_chart(fig, use_container_width=True)
399
 
400
+ elif viz_type == "Time Series Analysis":
401
  # Basic time series plot
402
  time_col = st.selectbox("Time Column", df.columns)
403
  value_col = st.selectbox("Value Column", df.columns)
 
406
 
407
  elif viz_type == "Cluster Analysis":
408
  st.write("Cluster Analysis Feature Coming Soon!") # placeholder for future development
409
+