Hello,
I am beginner in python. I am trying to draw districution curve using one column (total_time) from my csv file. I am getting error on line 13 in this code. Any help will be highly appreciated.
import csv
from sortedcontainers import SortedDict
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt
d = {}
with open(βC:\Users\dreamzz\myfile.csvβ, βrbβ) as csvfile:
reader = csv.DictReader(csvfile)
for col in reader:
field = col[βTotal_timeβ]
for i in field:
if d[1]== β β :
d[1]=i
else:
d[1]=i+1
s = SortedDict(d)
hmean = np.mean(s)
hstd = np.std(s)
pdf = stats.norm.pdf(s, hmean, hstd)
plt.plot(s, pdf)