From the course: Python for Time Series Forecasting

Unlock this course with a free trial

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

Python libraries for data visualization

Python libraries for data visualization - Python Tutorial

From the course: Python for Time Series Forecasting

Python libraries for data visualization

- [Speaker 1] We load the data we are going to work with. And now let me show you first why we need to work with just one column of the data frame. If we have the complete data frame and I do a plot, you will see that all of the columns have been plotted. But to showcase first univariate visualization with just one variable, I will select only one column inside the data frame. With the brackets I access, for example, inflation. Now I execute. And this is a new object, the series, because it's a column of the data frame and I will save it into the variable S. And this is the one that we will work with. Now in this series, we need to distinguish two parts. One is the index that contains the date time, and the other is the values to which the index are associated. So we are going to put the information in only one variable each. On the X axis we will use the index so we access in this way. And the same we apply for S dot values. We associate this time to the Y. If you want to fix some of…

Contents