From the course: Advanced Python: Top Tools for Data Science and Engineering
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Creating a basic plot
From the course: Advanced Python: Top Tools for Data Science and Engineering
Creating a basic plot
- [Instructor] Let's get started with matplotlib by building a basic chart, so I'm going to be using Colab for this chapter. So what I'm going to do to get the starting point, I'm going to go to the GitHub where the exercise files are, click on the Start folder. And then in the Visualize folder, I'm going to open up the IntroMatplot, and then I can just copy and paste this starting point into my notebook. All I'm going to do is click on this little copy button right here, and then go over to Colab, and then just paste, and Ctrl + V. So now, we have the starting point. And you can see that I've imported the matplotlib.pyplot module as PLD along with pandas as PD. And I have a pandas DataFrame and I've programmatically created some sales data as a dictionary, which is what I'm using to build the DataFrame here on line 15. And here on lines four and five, these are pretty much the standard ways of importing mapplotlib and pandas. It's an unofficial standard, but this is pretty much what…