# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Scatter Plots
#

#Import libraries
import pandas as pd
pd.plotting.register_matplotlib_converters()
import matplotlib.pyplot as plt
# %matplotlib inline
import seaborn as sns

# # Loading Dataset

 InsauranceData= pd.read_csv("insurance.csv")

InsauranceData

# # Data Examine

InsauranceData.head()

# # Scatter plots

sns.scatterplot(x=InsauranceData['bmi'], y=InsauranceData['charges'])

sns.regplot(x=InsauranceData['bmi'], y=InsauranceData['charges'])

# # Color-coded scatter plots

sns.scatterplot(x=InsauranceData['bmi'], y=InsauranceData['charges'], hue=InsauranceData['smoker'])

sns.lmplot(x="bmi", y="charges", hue="smoker", data=InsauranceData)

sns.swarmplot(x=InsauranceData['smoker'],
              y=InsauranceData['charges'])



StarcoderdataJupyterScriptsDedupFiltered