Professional Documents
Culture Documents
# Importing: Import From Import Import As Import As
# Importing: Import From Import Import As Import As
# Importing: Import From Import Import As Import As
12-4-2024
In [1]: 1 # Importing
2 import sklearn
3 from sklearn.datasets import load_diabetes
4 import pandas as pd
5 import matplotlib.pyplot as plt
6
7 # Load the dataset
8 diabetics = load_diabetes()
9
10 # Create the dataframe
11 column_name = diabetics.feature_names
12 df_diabetics = pd.DataFrame(diabetics.data)
13 df_diabetics.columns = column_name
14 print(df_diabetics.head())
s4 s5 s6
0 -0.002592 0.019907 -0.017646
1 -0.039493 -0.068332 -0.092204
2 -0.002592 0.002861 -0.025930
3 0.034309 0.022688 -0.009362
4 -0.002592 -0.031988 -0.046641
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 1/6
4/12/24, 9:25 AM Untitled7 - Jupyter Notebook
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 2/6
4/12/24, 9:25 AM Untitled7 - Jupyter Notebook
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 3/6
4/12/24, 9:25 AM Untitled7 - Jupyter Notebook
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 4/6
4/12/24, 9:25 AM Untitled7 - Jupyter Notebook
Symmetric: Example: The distribution of heights of adult males in a population. In this case,
the distribution is symmetrical, with the majority of individuals clustered around the mean
height, and the tails of the distribution extend equally in both directions.
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 5/6
4/12/24, 9:25 AM Untitled7 - Jupyter Notebook
In [ ]: 1
localhost:8888/notebooks/Untitled7.ipynb?kernel_name=python3 6/6