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.to_markdown() in Pandas
- Python | pandas.date_range() method
- Python | Filtering data with Pandas .query() method
- Python | Pandas Dataframe.describe() method
- Python | Pandas Dataframe/Series.head() method
- Python | Pandas Dataframe/Series.tail() method
- Python | Pandas Series.str.isspace() method
- Python | pandas.period_range() method
- Python | pandas.to_numeric method
- Python | Pandas DataFrame.to_html() method
- Python | Pandas DataFrame.to_latex() method
- Pandas.cut() method in Python
- Select first or last N rows in a Dataframe using head() and tail() method in Python-Pandas
- Python Pandas - get_dummies() method
- Reshape a pandas DataFrame using stack,unstack and melt method
- DataFrame.to_excel() method in Pandas
- DataFrame.read_pickle() method in Pandas
- Return multiple columns using Pandas apply() method
- Python | Pandas Index.insert()
- Python | Pandas DatetimeIndex.inferred_freq
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.

