sree4411 commited on
Commit
dfa4ee0
Β·
verified Β·
1 Parent(s): 9f1a89e

Update pages/3_Life Cycle Of ML Project.py

Browse files
Files changed (1) hide show
  1. pages/3_Life Cycle Of ML Project.py +45 -41
pages/3_Life Cycle Of ML Project.py CHANGED
@@ -75,51 +75,11 @@ elif st.session_state.page == "structured_data":
75
  if st.button(":blue[πŸ“Š Excel]"):
76
  st.session_state.page = "excel"
77
 
78
- if st.button(":blue[πŸ“‘ CSV]"):
79
- st.session_state.page = "csv"
80
 
81
  if st.button(":red[Back to Data Collection]"):
82
  st.session_state.page = "data_collection"
83
 
84
- # ----------------- CSV Data Page -----------------
85
- elif st.session_state.page == "csv":
86
- st.title(":red[CSV Data Format]")
87
- st.markdown("""
88
- CSV (Comma-Separated Values) is a simple format used to store tabular data. Each line in the file represents a row, and commas separate the values within the row.
89
- """)
90
- st.markdown("### How to Read a CSV file")
91
- st.code("""
92
- import pandas as pd
93
- # Read a CSV file
94
- df = pd.read_csv('data.csv')
95
- print(df)
96
- """, language='python')
97
-
98
- st.markdown("### Issues Encountered")
99
- st.write("""
100
- - *File not found*: Incorrect file path.
101
- - *Wrong delimiter*: The CSV uses a different delimiter (e.g., semicolon).
102
- - *Missing Libraries*: pandas might be missing.
103
- """)
104
-
105
- st.write("### Solutions")
106
- st.code("""
107
- # Install required libraries
108
- # pip install pandas
109
- # Handle file not found
110
- try:
111
- df = pd.read_csv('data.csv')
112
- except FileNotFoundError:
113
- print("File not found. Check the file path.")
114
- # Handle incorrect delimiter
115
- df = pd.read_csv('data.csv', delimiter=';')
116
- """, language='python')
117
-
118
- st.link_button(":blue[Jupyter Notebook(colab)]","https://colab.research.google.com/drive/1sT35x4JH9s_hb31aMoUwtry-w8FE7fQg?usp=sharing")
119
-
120
-
121
- if st.button(":red[Back to Structured Data]"):
122
- st.session_state.page = "structured_data"
123
 
124
  # ----------------- Excel Data Page -----------------
125
  elif st.session_state.page == "excel":
@@ -242,10 +202,54 @@ elif st.session_state.page == "semi_structured_data":
242
 
243
  if st.button(":blue[HTML Data]"):
244
  st.session_state.page = "html"
 
 
 
245
 
246
  if st.button(":red[Back to Data Collection]"):
247
  st.session_state.page = "data_collection"
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  # ----------------- XML Data Page -----------------
250
  elif st.session_state.page == "xml":
251
  st.title(":blue[XML Data Format]")
 
75
  if st.button(":blue[πŸ“Š Excel]"):
76
  st.session_state.page = "excel"
77
 
78
+
 
79
 
80
  if st.button(":red[Back to Data Collection]"):
81
  st.session_state.page = "data_collection"
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  # ----------------- Excel Data Page -----------------
85
  elif st.session_state.page == "excel":
 
202
 
203
  if st.button(":blue[HTML Data]"):
204
  st.session_state.page = "html"
205
+
206
+ if st.button(":blue[πŸ“‘ CSV]"):
207
+ st.session_state.page = "csv"
208
 
209
  if st.button(":red[Back to Data Collection]"):
210
  st.session_state.page = "data_collection"
211
 
212
+ # ----------------- CSV Data Page -----------------
213
+ elif st.session_state.page == "csv":
214
+ st.title(":red[CSV Data Format]")
215
+ st.markdown("""
216
+ CSV (Comma-Separated Values) is a simple format used to store tabular data. Each line in the file represents a row, and commas separate the values within the row.
217
+ """)
218
+ st.markdown("### How to Read a CSV file")
219
+ st.code("""
220
+ import pandas as pd
221
+ # Read a CSV file
222
+ df = pd.read_csv('data.csv')
223
+ print(df)
224
+ """, language='python')
225
+
226
+ st.markdown("### Issues Encountered")
227
+ st.write("""
228
+ - *File not found*: Incorrect file path.
229
+ - *Wrong delimiter*: The CSV uses a different delimiter (e.g., semicolon).
230
+ - *Missing Libraries*: pandas might be missing.
231
+ """)
232
+
233
+ st.write("### Solutions")
234
+ st.code("""
235
+ # Install required libraries
236
+ # pip install pandas
237
+ # Handle file not found
238
+ try:
239
+ df = pd.read_csv('data.csv')
240
+ except FileNotFoundError:
241
+ print("File not found. Check the file path.")
242
+ # Handle incorrect delimiter
243
+ df = pd.read_csv('data.csv', delimiter=';')
244
+ """, language='python')
245
+ st.link_button(":blue[Jupyter Notebook(colab)]","https://colab.research.google.com/drive/1sT35x4JH9s_hb31aMoUwtry-w8FE7fQg?usp=sharing")
246
+
247
+
248
+ if st.button(":red[Back to Structured Data]"):
249
+ st.session_state.page = "structured_data"
250
+
251
+
252
+
253
  # ----------------- XML Data Page -----------------
254
  elif st.session_state.page == "xml":
255
  st.title(":blue[XML Data Format]")