#Code for Question 7
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
bin=np.arange(0,15,1) #Use of bin to start from 0 end upto 15
increment by 1 (start,end,step_size)
df = pd.read_csv("burritos.csv", usecols = ['Cost'])#Read csv
burritos file and reading Cost column values in df
plt.hist(df, bins=15) #plotting the histogram
plt.title("Distribution of cost of burritos from San Diego")
![import numpy as np import pandas as pd import matplotlib.pyplot as plt bin=np.arange(0,15,1) #Use of bin to start from end up](//img.homeworklib.com/questions/71623920-8d70-11eb-99ee-c5f8e7ca2f13.png?x-oss-process=image/resize,w_560)
![In [51]: import numpy as np ...: import pandas as pd ...: import matplotlib.pyplot as plt ...: bin=np.arange(0,15,1) #Use of](//img.homeworklib.com/questions/724aac00-8d70-11eb-9498-9fab0039be25.png?x-oss-process=image/resize,w_560)
import numpy as np import pandas as pd import matplotlib.pyplot as plt bin=np.arange(0,15,1) #Use of bin to start from end upto 15 increment by 1 (start, end, step_size) df = pd. read_csv"burritos.csv", usecols = ['Cost']) Read csv burritos file and reading Cost column values in df plt.hist(df, bins=15) #plotting the histogram plt.title("Distribution of cost of burritos from San Diego")
In [51]: import numpy as np ...: import pandas as pd ...: import matplotlib.pyplot as plt ...: bin=np.arange(0,15,1) #Use of bin to start from o end upto 15 increment by 1 (start, end, step_size) ...: df = pd. read_csv ("burritos.csv", usecols = ['Cost']) #Read csv burritos file and reading Cost column values in df ...: plt.hist(df, bins=15) #plotting the histogram ...: plt.title("Distribution of cost of burritos from San Diego") Out[51]: Text(0.5,1, 'Distribution of cost of burritos from San Diego') Distribution of cost of burritos from San Diego WATOTHORARBER In [52]: