Visualizing trends

Introduction to Python for Finance

Adina Howe

Instructor

Your mission - outlier?

peratio

Introduction to Python for Finance

Step 1: Make a histogram

import matplotlib.pyplot as plt
plt.hist(hist_data, bins = 8)
plt.show()
Introduction to Python for Finance

Step 2: Identify the Outlier

  • Identify the outlier P/E ratio
  • Create a boolean array filter to subset this company
  • Filter out this company information from the provided datasets
Introduction to Python for Finance

Let's practice!

Introduction to Python for Finance

Preparing Video For Download...