From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge: Series operations

Challenge: Series operations

- [Instructor] All right, everybody, we have a new email in from Rachel Revenue. The subject line is Sensitivity Analysis. She writes us, "Hey there, I'm doing some stress testing on my models. I want to look at the financial impact if oil prices were $10 higher and add an additional $2 per barrel on top of that. Once you've done that, create a series that represents the percent difference between each price and the maximum price in the series. The maximum method will be provided to us in the notebook. Finally, extract the month from the string dates in the index and store them as an integer. Thanks." And so let's go ahead and take a look at our notebook. All right, so let's go ahead and take a look at our next assignment. We want to increase the prices in the oil series by 10%, and after we do that, we want to add an additional $2 per barrel on top of that. We're going to go back to our original oil series. So, this is one problem, but we'll be using oil series to start for both this…

Contents