hari3485 commited on
Commit
b8484bf
·
verified ·
1 Parent(s): d758b45

Update pages/hari.py

Browse files
Files changed (1) hide show
  1. pages/hari.py +8 -0
pages/hari.py CHANGED
@@ -38,6 +38,14 @@ def excel_details_page():
38
  'df_second_sheet = df[1] # Second sheet\n'
39
  'df_third_sheet = df[2] # Third sheet', language="python")
40
 
 
 
 
 
 
 
 
 
41
  st.markdown("""
42
  <ul style="font-family: Arial; line-height: 1.6;">
43
  <li>To save multiple sheets, use <b>pd.ExcelWriter</b></li>
 
38
  'df_second_sheet = df[1] # Second sheet\n'
39
  'df_third_sheet = df[2] # Third sheet', language="python")
40
 
41
+ st.markdown("<h3 style='text-align:; color: #dda0dd;'>3. Converting Data to Excel Files (.xlsx)</h3>", unsafe_allow_html=True)
42
+ st.markdown("""
43
+ <ul style="font-family: Arial; line-height: 1.6;">
44
+ <li>To save a single DataFrame to an Excel file</li>
45
+ </ul>""", unsafe_allow_html=True)
46
+
47
+ st.code('df[0].to_excel("path")', language="python")
48
+
49
  st.markdown("""
50
  <ul style="font-family: Arial; line-height: 1.6;">
51
  <li>To save multiple sheets, use <b>pd.ExcelWriter</b></li>