October 2019
Beginner to intermediate
674 pages
16h 43m
English
Each individual entity of a dictionary is a key-value pair. A DataFrame is, in essence, a dictionary of several Series put together. The name of the Series corresponds to the key, and the contents of the Series correspond to the value.
As the first step, the dictionary with all the Series should be defined:
stockSummaries = {'AMZN': pd.Series([346.15,0.59,459,0.52,589.8,158.88],index=['Closing price','EPS','Shares Outstanding(M)','Beta', 'P/E','Market Cap(B)']),'GOOG': pd.Series([1133.43,36.05,335.83,0.87,31.44,380.64],index=['Closing price','EPS','Shares Outstanding(M)','Beta','P/E','Market Cap(B)']),'FB': pd.Series([61.48,0.59,2450,104.93,150.92],index=['Closing price','EPS','Shares Outstanding(M)','P/E', 'Market ...Read now
Unlock full access