# Fill missing values with defaults df['amazon_category_and_sub_category'] = df['amazon_category_and_sub_category'].fillna('') df['manufacturer'] = df['manufacturer'].fillna('Unknown') df['number_of_answered_questions'] = df['number_of_answered_questions'].fillna(0.0) df['average_review_rating'] = df['average_review_rating'].fillna(0.0) df['description'] = df['description'].fillna('') df['product_description'] = df['product_description'].fillna('') df['product_information'] = df['product_information'].fillna('') df['customer_reviews'] = df['customer_reviews'].fillna('') df['stock_availability'] = df['stock_availability'].astype(float).fillna(0.0) df['stock_type'] = df['stock_type'].fillna('Out of stock')