Introduction à Python pour la finance
Adina Howe
Professor
Standard and Poor's S&P 100 :
Secteurs des entreprises du S&P 100 en 2017


$$ \text{Price to earning ratio} = \frac{\text{Market price}}{\text{Earnings per share}} $$
Listes décrivant le S&P 100 : noms, cours, bénéfices, secteurs
Explorer et analyser les données du S&P 100, en particulier les ratios C/B des entreprises du S&P 100
In [1]: my_list = [1, 2, 3, 4, 5]
# first element
In [2]: print(my_list[0])
1
# last element
In [3]: print(my_list[-1])
5
# range of elements
In [4]: print(my_list[0:3])
[1, 2, 3]
# Convert lists to arrays
import numpy as np
my_array = np.array(my_list)
# Elementwise array operations
array_ratio = array1 / array2
Introduction à Python pour la finance