January 2019
Intermediate to advanced
378 pages
8h 27m
English
We'll get a quick summary of the performance of the stocks over the past 18 years by executing the following code:
summary_by_year = df.groupby('Year')['1st Day % Chg'].describe()
summary_by_year
The preceding code generates the following output:

From the table, we can see the extraordinary average return of the IPO market in 2000. At over 35%, it is more than double any other year on the list. Also notable is the fact that every year has had a positive average return for first-day performance.
Let's plot first-day performance to get a better feel for it:
fig, ax = plt.subplots(figsize=(16,8)) summary_by_year['mean'].plot(kind='bar', ...
Read now
Unlock full access