Mean prices
When looking at stock prices it is useful to look at a prices not only over the course of multiple days, but at different points in the same data. In this exercise you are given historical data for a stock prices in a DataFrame named prices
. The DataFrame has the columns OPEN
, CLOSE
, HI
, and LOW
. You are trying understand the trend of this stock's price by using the mean opening and closing prices. Is the mean opening price greater than the mean closing price?
This exercise is part of the course
Intermediate Python for Finance
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
