Statsmodels

The following argument downloads and returns the R dataset from the Internet:

statsmodels.api.datasets.get_rdataset(dataname, package='datasets', cache=False)

The following argument plots a Q-Q plot:

statsmodels.api.qqplot(data, dist, distargs=(), a=0, loc=0, scale=1, fit=False, line=None, ax=None)

The following argument creates an ANOVA table for one or more fitted linear models:

statsmodels.stats.anova.anova_lm()

Get Python Data Analysis Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.