Skip to content

DOC: Addition of plt.show() in the "How to create plots in pandas?" section of the Getting started tutorials #45772

Closed
@up-the-hill

Description

@up-the-hill

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/getting_started/intro_tutorials/04_plotting.html#min-tut-04-plotting

Documentation problem

In all the code blurbs, the 6 plot outputs are shown without the required input of

plt.show()

For example, in the "I want a quick visual check of the data." section:

In[5]:air_quality.plot()
Out[5]: AxesSubplot:xlabel='datetime'

This may cause some confusion for people reading the docs who are not familiar with the matplotlib.pyplot module.

Suggested fix for documentation

The line of code:

in[n]: plt.show() (where n is the required line number of the code)

can be added before each of the graphs to show the required command to display the graph.
This will allow the readers of the documentation to learn how to display the required graph on the screen.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions