Get startedGet started for free

Further analyzing food preservation techniques

In your role as a food scientist, you're exploring into the comparative effects of various food preservation methods on nutrient retention, utilizing a food_preservation dataset that includes measurements from freezing, canning, and drying methods. This dataset has been crafted to incorporate variations in shelf life that depend on the nutrient retention values, reflecting real-world scenarios where preservation efficacy varies significantly. Your analysis will involve visually exploring these differences using advanced plotting techniques and nonparametric tests.

The following imports have been loaded for you in addition to food_preservation:

import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.stats import kruskal

This exercise is part of the course

Experimental Design in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create a boxen plot for nutrient retention by preservation
____(data=food_preservation, 
     x="____", 
     y="____")
plt.show()
Edit and Run Code