# Derived Column: Create a new column based on existing columns
data['discounted_price'] = data['price'] * 0.9 # Example calculation for discount
# Output transformed data
# You can save these transformed datasets to new .csv files or use them further in your analysis. high_sales.to_csv('high_sales.csv', index=False) low_sales.to_csv('low_sales.csv', index=False) sales_by_category.to_csv('sales_by_category.csv') sorted_data.to_csv('sorted_data.csv', index=False) data.to_csv('derived_data.csv', index=False)