Plotting is one of the fundamental tool of the modern Data Scientist.
Simple plots are made easy using the .plot() from the Pandas library
You will also need to use the matplotlib library
Installing Pandas and Matplotlib
Using Pandas
Pandas do have a little charting library in his toolbox. But will require matplotlib if you want to show it if you are running it from a script.
Here is the simplest example :
You can pass quite a lot of paremeters to the .plot() method.
Such as
- A title as title="My amazing title"
- xlabel as xlabel="x"
- ylabel as ylabel="y"
- Logarithmic scale as in ylog=True
- the type of chart as in kind="line"
- etc...
Like so :
Here you go ! You know how to make a basic plot in Python