Solution 6.2
In this activity, you are analyzing data from this year's survey of abalone oysters for the National Marine Fisheries Service. In particular, you want to get some summary values for the dimensions of male and female samples in the data, depending on the number of rings in the shells. The ring count is a measure of age, and reviewing this data provides comparisons to previous years to understand the health of the population. The data contains a number of observations, including sex, length, diameter, weight, shell weight, and the number of rings:
- For this activity, all you will need is the
pandas
library. Load it in the first cell of the notebook:import pandas as pd
- Read the
abalone.csv
file into a DataFrame calledabalone
and view the first five rows:abalone = pd.read_csv('..//Datasets//abalone.csv') abalone.head()
The output should look as follows: