Update pages/3_EDA_and_Feature_Engineering.py
Browse files
pages/3_EDA_and_Feature_Engineering.py
CHANGED
|
@@ -18,6 +18,11 @@ if 'df' in st.session_state:
|
|
| 18 |
else:
|
| 19 |
st.warning("No dataset uploaded. Please upload data on the Home Page.")
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
st.markdown("Complete EDA + Feature Engineering")
|
| 22 |
st.markdown("## **Univariate Analysis**")
|
| 23 |
st.markdown("### PRODUCT CATEGORY")
|
|
|
|
| 18 |
else:
|
| 19 |
st.warning("No dataset uploaded. Please upload data on the Home Page.")
|
| 20 |
|
| 21 |
+
# rename columns
|
| 22 |
+
df = df.rename(columns={'ProductCategory': 'Category', 'ProductBrand': 'Brand', 'ProductPrice': 'Price'})
|
| 23 |
+
# Correct Price Column values (round off to 2 decimal places)
|
| 24 |
+
df['Price'] = df['Price'].apply(lambda x: round(x,2))
|
| 25 |
+
print(df.head())
|
| 26 |
st.markdown("Complete EDA + Feature Engineering")
|
| 27 |
st.markdown("## **Univariate Analysis**")
|
| 28 |
st.markdown("### PRODUCT CATEGORY")
|