dt3 The Same As Possible To Get To
dt3 The Same As Possible To Get To
Experiment: 3
4. Code:
#Installing Pycaret
#Classification
#Loading dataset from pycaret
from pycaret.datasets import get_data
#No output
#Getting the list of datasets available in pycaret (55)
dataSets = get_data('index')
#Getting diabetes dataset
diabetesDataSet = get_data("diabetes") # Serial No. is 7
diabetesDataSet.describe()
diabetesDataSet.info()
#print("type(diabetesDataSet)-->",type(diabetesDataSet))
University Institute of Engineering
Department of Computer Science & Engineering
diabetesDataSet.head()
diabetesDataSet.tail()
### Accessing data from dataset - Part 1 (using loc - Column Names)
diabetesDataSet.iloc[20:30, 1:5]
#Bar graph
import matplotlib.pyplot as plt
plt.bar(x,y, color="g")
plt.xlabel("Diabetes pedigree function")
plt.ylabel("Age (years)")
plt.title("bar graph for DIABETES DATASET")
plt.show()
#Scatter plot
import matplotlib.pyplot as plt
#Subplot
import matplotlib.pyplot as plt