Outils pour utilisateurs

Outils du site


python:first_course_statistics

Ceci est une ancienne révision du document !


General instructions

Read following important documentation about:

Save your scripts in a folder inside the data folder, calling the script folder 'my_scripts' or whaterver. If 'my-scripts' is set as your current working directory, then the data files are available under this address '../[data file]', for instantce: '../geyser1.TAB'

Eruptions of the "Old Faithful" geyser (p.5)

Histogram (p.5)

FB: this script works fine !

import pandas as pd
import matplotlib.pyplot as plt
gys1 = pd.DataFrame(pd.read_csv('../geyser1.TAB', '\t'))
g_int = gys1['Interval']
ax = plt.gca()
ax.hist(g_int, bins=20, color='r')
ax.set_xlabel('Intereruption time')
ax.set_ylabel('Frequency')
ax.set_title('Histogram')
plt.show() 


International adoption rates (p.13)

python/first_course_statistics.1476047726.txt.gz · Dernière modification: 2016/10/09 23:15 par Francesco Beretta