Merge and Plot Our Data Frames

Learn how to merge and plot data frames and how to merge data series and easily plot them.

Merging data series

We need to merge our two data series. But since we’ve already done all the cleaning up and manipulation, this will go smoothly. We’ll create a new data frame called merged_data and feed it with the output of this pd.merge function. We supply our two data frames’ names and specify that the Date column should be the index.

Fast and friendly. No trouble at all. Go ahead and take a look:

Get hands-on with 1200+ tech skills courses.