python:first_course_statistics
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| python:first_course_statistics [2016/11/29 12:58] – alberetta | python:first_course_statistics [2017/09/26 08:54] (Version actuelle) – [General instructions] fberetta | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| * pandas [[http:// | * pandas [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | |||
| + | |||
| + | Get the data from [[http:// | ||
| + | |||
| Save your scripts in a folder inside the data folder, calling the script folder ' | Save your scripts in a folder inside the data folder, calling the script folder ' | ||
| Ligne 35: | Ligne 39: | ||
| import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
| import pandas as pd | import pandas as pd | ||
| - | gysr1_boxplot = pd.read_csv(' | + | gysr1_boxplot = pd.read_csv(' |
| data_gysr1 = gysr1_boxplot[' | data_gysr1 = gysr1_boxplot[' | ||
| plt.boxplot(data_gysr1) | plt.boxplot(data_gysr1) | ||
| Ligne 55: | Ligne 59: | ||
| import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
| import pandas as pd | import pandas as pd | ||
| - | geysr1_scatterplot = pd.read_csv(' | + | geysr1_scatterplot = pd.read_csv(' |
| geysr1_data_Xax = geysr1_scatterplot[' | geysr1_data_Xax = geysr1_scatterplot[' | ||
| geysr1_data_Yax = geysr1_scatterplot[' | geysr1_data_Yax = geysr1_scatterplot[' | ||
| Ligne 290: | Ligne 294: | ||
| + | ===== Productivity versus quality in the assembly plant (p.29) ===== | ||
| + | It worked the first time but now it doesn' | ||
| + | <code python> | ||
| + | #1 | ||
| + | import matplotlib.pyplot as plt | ||
| + | import pandas as pd | ||
| + | data_comparison = pd.read_csv(' | ||
| + | non_japanese = data_comparison.loc[data_comparison[' | ||
| + | japanese = data_comparison.loc[data_comparison[' | ||
| + | plt.boxplot([non_japanese[' | ||
| + | plt.show() | ||
| + | |||
| + | #2 | ||
| + | import matplotlib.pyplot as plt | ||
| + | import pandas as pd | ||
| + | data_comparison = pd.read_csv(' | ||
| + | non_japanese = data_comparison.loc[data_comparison[' | ||
| + | japanese = data_comparison.loc[data_comparison[' | ||
| + | plt.boxplot([non_japanese[' | ||
| + | plt.show() | ||
| + | </ | ||
python/first_course_statistics.1480420687.txt.gz · Dernière modification : de alberetta
