The pandas library offers the plot() method as a wrapper around the Matplotlib library. The plot() method allows us to create plots directly on pandas DataFrames. The following plot() method parameters are used to create the plots:
- kind: A string parameter for the type of graph, such as line, bar, barh, hist, box, KDE, pie, area, or scatter.
- figsize: This defines the size for a figure in a tuple of (width, height).
- title: This defines the title for the graph.
- grid: Boolean parameter for the axis grid line.
- legend: This defines the legend.
- xticks: This defines the sequence of x-axis ticks.
- yticks: This defines the sequence of y-axis ticks.
Let's create a scatter plot using the pandas plot() function:
# Import the required modules
import pandas as pd
import matplotlib.pyplot as plt
# Let's create a Dataframe
df = pd.DataFrame({
'name':['Ajay','Malala','Abhijeet','Yming','Desilva&apos...