Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Prochaine révision Les deux révisions suivantes | ||
python:first_course_statistics [2016/10/09 23:25] Francesco Beretta [Histogram (p.5)] |
python:first_course_statistics [2016/10/12 18:46] Beretta, Anna Letizia |
||
---|---|---|---|
Ligne 31: | Ligne 31: | ||
\\ | \\ | ||
+ | |||
+ | ===== Boxplot (p. 6) ===== | ||
+ | |||
+ | <code python> | ||
+ | import matplotlib.pyplot as plt | ||
+ | import pandas as pd | ||
+ | gysr1_boxplot = pd.read_csv('D:\Python\Libri\A Casebook for a First Course in Statistics and Data Analysis Datasets\Data\Tab\geyser1.TAB', '\t') | ||
+ | data_gysr1 = gysr1_boxplot['Interval'] | ||
+ | plt.boxplot(data_gysr1) | ||
+ | ax = plt.gca() | ||
+ | ax.set_xlabel('222 cases') | ||
+ | ax.set_ylabel('Interruption time ( minutes') | ||
+ | ax.set_title('Box and Whisker Plot') | ||
+ | plt.show() | ||
+ | </code> | ||
====== International adoption rates (p.13) ====== | ====== International adoption rates (p.13) ====== | ||