trohith89 commited on
Commit
17a9f3c
·
verified ·
1 Parent(s): c7858e7

Update pages/2_Data_CLeaning_and_Preprocessing.py

Browse files
pages/2_Data_CLeaning_and_Preprocessing.py CHANGED
@@ -10,7 +10,10 @@ st.markdown("<h1 style='text-align:center; color:white;'>Data Cleaning and Proce
10
  # Access dataset from session state
11
  df = st.session_state.get("dataset")
12
 
 
13
  if df is not None:
 
 
14
  st.subheader("Dataset Preview:")
15
  st.write(df.head())
16
 
 
10
  # Access dataset from session state
11
  df = st.session_state.get("dataset")
12
 
13
+ # Exclude 'ProductID' from the dataset
14
  if df is not None:
15
+ df = df.drop(columns=['ProductID'], errors='ignore') # Exclude 'ProductID' if it exists
16
+
17
  st.subheader("Dataset Preview:")
18
  st.write(df.head())
19