From the course: Data Analysis with Python and Pandas

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Challenge: Basic line chart

Challenge: Basic line chart

- [Instructor] Okay, new email in from Rachel Revenue. Subject line is Oil Price Trends. She writes us, "Hi there, I don't have a good grasp on the trends in oil prices. There are way too many values to understand from table data. Can you plot the oil prices with a simple line chart? Also, if you want to, Google oil price decline 2014 to help understand the big drop in prices, thanks." If we take a look at the results preview, we can see a line chart on the right. This is what we want to create. Let's go ahead and take a quick look at our notebook. All right, so we just want to build a simple line plot for our oil series, and we just want to see if there are any interesting patterns. If you want to dig into what happened to oil prices in 2014, that could be kind of fun, but we're just going to be working with our oil data frame. If you remember, we just have a date column here and we have a price column here. We just want to plot prices by dates, go ahead and give this a shot, and…

Contents