Mpavan45 commited on
Commit
c4c1912
·
verified ·
1 Parent(s): 1c02364

Update pages/2_Data Cleaning and Processing .py

Browse files
pages/2_Data Cleaning and Processing .py CHANGED
@@ -726,7 +726,7 @@ if df is not None:
726
  st.write(df['price'].describe()) # Use describe() for a summary of the 'price' column
727
 
728
  # Filter rows where price is less than 600 or greater than 40,000
729
- df_filtered = df[(df['price'] < 500) | (df['price'] > 40000)]
730
  df.drop(df_filtered.index, inplace=True) # Drop rows based on the filtered indices
731
 
732
  st.write("### Updated Dataset with Filtered Rows")
@@ -745,7 +745,7 @@ if df is not None:
745
  """
746
  This tool allows you to filter rows in a dataset based on the `price` column and drop the rows where the `price` is either less than 600 or greater than 40,000.
747
  - **Input**: A dataset with a `price` column.
748
- - **Process**: Removes rows where `price` is less than 500 or greater than 40,000.
749
  - **Output**: The filtered dataset with rows dropped and the `price` column intact.
750
 
751
  #### Why Drop Rows Based on Price?
 
726
  st.write(df['price'].describe()) # Use describe() for a summary of the 'price' column
727
 
728
  # Filter rows where price is less than 600 or greater than 40,000
729
+ df_filtered = df[(df['price'] < 400) | (df['price'] > 40000)]
730
  df.drop(df_filtered.index, inplace=True) # Drop rows based on the filtered indices
731
 
732
  st.write("### Updated Dataset with Filtered Rows")
 
745
  """
746
  This tool allows you to filter rows in a dataset based on the `price` column and drop the rows where the `price` is either less than 600 or greater than 40,000.
747
  - **Input**: A dataset with a `price` column.
748
+ - **Process**: Removes rows where `price` is less than 400 or greater than 40,000.
749
  - **Output**: The filtered dataset with rows dropped and the `price` column intact.
750
 
751
  #### Why Drop Rows Based on Price?