Find the highest frequency of interval for data science using Python in Anaconda - Jupyter

#import the library Pandas
import pandas as pd

#Put the mtcars.csv dataset on Root Directory

#Read the dataset 
data = pd.read_csv('mtcars.csv')

#Which can be inferred from scatter plot of ‘mpg’ (Miles per gallon) vs ‘wt’ (Weight of car) from the dataset mtcars.csv

#========================================
#           Scatter Plot
#========================================
plt.scatter(data['wt'],data['mpg'])
plt.title('Scatter plot of mpg vs weight of car')
plt.xlabel('weight of car')
plt.ylabel('miles per gallon')
plt.show()



Output:-