Outils pour utilisateurs

Outils du site


python:first_course_statistics

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
Prochaine révision Les deux révisions suivantes
python:first_course_statistics [2016/10/13 12:52]
Beretta, Anna Letizia
python:first_course_statistics [2016/10/17 07:20]
Francesco Beretta [Histogram (p.5)]
Ligne 13: Ligne 13:
  
 ===== Histogram (p.5) ===== ===== Histogram (p.5) =====
- 
-FB: this script works fine ! Do not delete it ! 
  
 <code python> <code python>
Ligne 37: Ligne 35:
 import matplotlib.pyplot as plt import matplotlib.pyplot as plt
 import pandas as pd 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'​)+gysr1_boxplot = pd.read_csv('​...\geyser1.TAB',​ '​\t'​)
 data_gysr1 = gysr1_boxplot['​Interval'​] data_gysr1 = gysr1_boxplot['​Interval'​]
 plt.boxplot(data_gysr1) plt.boxplot(data_gysr1)
Ligne 52: Ligne 50:
 ===== ScatterPlot (p. 7) ===== ===== ScatterPlot (p. 7) =====
  
-AB: Put face- and edgecolor to change both of them. You can also have to different ​color for the in- and outside of each point.+AB: Put face- and edgecolor to change both of them. You can also have two different ​colors ​for the in- and outside of each dot.
  
 <code python> <code python>
 import matplotlib.pyplot as plt import matplotlib.pyplot as plt
 import pandas as pd import pandas as pd
-geysr1_scatterplot = pd.read_csv('​D:​\Python\Libri\A Casebook for a First Course in Statistics and Data Analysis Datasets\Data\Tab\geyser1.TAB',​ '​\t'​)+geysr1_scatterplot = pd.read_csv('​...\geyser1.TAB',​ '​\t'​)
 geysr1_data_Xax = geysr1_scatterplot['​Duration'​] geysr1_data_Xax = geysr1_scatterplot['​Duration'​]
 geysr1_data_Yax = geysr1_scatterplot['​Interval'​] geysr1_data_Yax = geysr1_scatterplot['​Interval'​]
python/first_course_statistics.txt · Dernière modification: 2017/09/26 08:54 par Francesco Beretta