rimasalshehri commited on
Commit
2c25f7f
·
verified ·
1 Parent(s): 9487423

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -2
app.py CHANGED
@@ -271,18 +271,42 @@ def customer_dashboard_page():
271
  scrolling=True
272
  )
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  def management_dashboard_page():
275
  st.image("logo.png", width=200)
276
  st.markdown('<h1 style="color: #084C3C;">Management Dashboard</h1>', unsafe_allow_html=True)
 
 
277
  employee_data = {
278
  "Employee ID": ["E001", "E002", "E003"],
279
  "Name": ["John Doe", "Jane Smith", "Ali Ahmad"],
280
  "Performance Score": [85, 90, 88],
281
  }
282
  df_employee = pd.DataFrame(employee_data)
 
 
283
  st.dataframe(df_employee)
284
- df = pd.DataFrame(customer_data)
285
- st.dataframe(df)
286
  st.components.v1.iframe(
287
  "https://app.powerbi.com/view?r=eyJrIjoiMzQ5N2RlMDQtY2I5ZC00NWE5LWE0ZjItMjExMzgyNmNmZWFjIiwidCI6ImI0NTNkOTFiLTZhYzEtNGI2MS1iOGI4LTVlNjVlNDIyMjMzZiIsImMiOjl9",
288
  height=800,
@@ -293,6 +317,7 @@ def management_dashboard_page():
293
 
294
 
295
 
 
296
  def customize_navigation_menu_dark_green():
297
  st.markdown(
298
  """
 
271
  scrolling=True
272
  )
273
 
274
+ # def management_dashboard_page():
275
+ # st.image("logo.png", width=200)
276
+ # st.markdown('<h1 style="color: #084C3C;">Management Dashboard</h1>', unsafe_allow_html=True)
277
+ # employee_data = {
278
+ # "Employee ID": ["E001", "E002", "E003"],
279
+ # "Name": ["John Doe", "Jane Smith", "Ali Ahmad"],
280
+ # "Performance Score": [85, 90, 88],
281
+ # }
282
+ # df_employee = pd.DataFrame(employee_data)
283
+ # st.dataframe(df_employee)
284
+ # df = pd.DataFrame(customer_data)
285
+ # st.dataframe(df)
286
+ # st.components.v1.iframe(
287
+ # "https://app.powerbi.com/view?r=eyJrIjoiMzQ5N2RlMDQtY2I5ZC00NWE5LWE0ZjItMjExMzgyNmNmZWFjIiwidCI6ImI0NTNkOTFiLTZhYzEtNGI2MS1iOGI4LTVlNjVlNDIyMjMzZiIsImMiOjl9",
288
+ # height=800,
289
+ # width=1000,
290
+ # scrolling=True
291
+ # )
292
+
293
+
294
  def management_dashboard_page():
295
  st.image("logo.png", width=200)
296
  st.markdown('<h1 style="color: #084C3C;">Management Dashboard</h1>', unsafe_allow_html=True)
297
+
298
+ # Define employee data
299
  employee_data = {
300
  "Employee ID": ["E001", "E002", "E003"],
301
  "Name": ["John Doe", "Jane Smith", "Ali Ahmad"],
302
  "Performance Score": [85, 90, 88],
303
  }
304
  df_employee = pd.DataFrame(employee_data)
305
+
306
+ # Display the employee data table
307
  st.dataframe(df_employee)
308
+
309
+ # Add the Power BI dashboard iframe
310
  st.components.v1.iframe(
311
  "https://app.powerbi.com/view?r=eyJrIjoiMzQ5N2RlMDQtY2I5ZC00NWE5LWE0ZjItMjExMzgyNmNmZWFjIiwidCI6ImI0NTNkOTFiLTZhYzEtNGI2MS1iOGI4LTVlNjVlNDIyMjMzZiIsImMiOjl9",
312
  height=800,
 
317
 
318
 
319
 
320
+
321
  def customize_navigation_menu_dark_green():
322
  st.markdown(
323
  """