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

import matplotlib.pyplot as plt

import pandas as pd

boston=pd.read_csv("https://vincentarelbundock.github.io/Rdatasets/csv/MASS/Boston.csv")

boston.head()

boston=boston.drop("Unnamed: 0",1)

var=boston.groupby('chas').medv.mean().reset_index()

plt.plot(var.chas,var.medv)

plt.xlabel("Charles River Facing Tract")

plt.ylabel("Median Prices")

plt.show()



StarcoderdataJupyterScriptsDedupFiltered