Python | Pandas Series.plot() method
With the help of Series.plot() method, we can get the plot of pandas series by using Series.plot() method.
Syntax :
Series.plot()
Return : Return the plot of series.
Example #1 :
In this example we can see that by using
In this example we can see that by using
Series.plot() method, we are able to get the plot of pandas series.
# import Series and matplotlib import pandas as pd import matplotlib.pyplot as plt # using Series.plot() method gfg = pd.Series([0.1, 0.4, 0.16, 0.3, 0.9, 0.81]) gfg.plot() plt.show() |
chevron_right
filter_none
Output :

Example #2 :
# import Series and matplotlib import pandas as pd import matplotlib.pyplot as plt # using Series.plot() method gfg = pd.Series([10, 9.9, 9.8, 7.8, 6.7, 19, 5.5]) gfg.plot() plt.show() |
chevron_right
filter_none
Output :

Recommended Posts:
- Python | pandas.date_range() method
- Python | pandas.period_range() method
- Python | pandas.to_numeric method
- Python | Pandas DataFrame.to_html() method
- Python | Pandas Series.str.isspace() method
- Python | Pandas DataFrame.to_latex() method
- Python | Pandas Dataframe.describe() method
- Python | Pandas Dataframe/Series.head() method
- Python | Filtering data with Pandas .query() method
- Python | Pandas Dataframe/Series.tail() method
- Python | pandas.map()
- Python | Pandas Timestamp.tz
- Python | Pandas TimedeltaIndex.contains
- Python | Pandas Series.min()
- Python | Pandas Timestamp.dst
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



