This is a follow up to the Scientific Python 7 exercise.
Dr. Granger is interested in studying the factors controlling the size and carbon storage of shrubs. This research is part of a larger area of research trying to understand carbon storage by plants. She has conducted a small preliminary experiment looking at the effect of three different treatments on shrub volume at four different locations. She wants to conduct a preliminary analysis of these data to include in a grant proposal and she would like you to conduct the analysis for her (she might be a world renowned expert in carbon storage in plants, but she sure doesn’t know much about computers). She has placed a data file on the web for you to download. She wants you to run an ANOVA to determine if the different experimental treatments lead to differences in shrub carbon.
.head()
method.1.8 + 2 *
log(volume)
where volume
is the volume of the shrub. You’ll need to use
the numpy
version of the log()
function. Call the function to get a
column of shrub carbons and then print out that column.data['carbon'] = get_shrub_carbons(lengths, widths, heights)
. Print out the
entire dataframe.anova_lm()
. You can import anova_lm()
using from statsmodels.stats.anova
import anova_lm
.