I am trying to plot the graph as I want time in x axis and integer data in y axis. I am getting the following error
TypeError: float() argument must be a string or a number
plt.plot(time,data)
on the above command it is showing the error
time contains the data points from after every one minute of interval 15:46:00 to 16:45:00
i have also checked the data type also it is showing datetime for time .
import matplotlib as plt
import matplotlib
import datetime as db
import matplotlib.pyplot as plt
time=["16:45:00","16:46:00","16:47:00","16:48:00","16:49:00","16:50:00"]
data=[1,2,1,3,4,6]
time1=[]
for tr in time:
t=db.datetime.strptime(tr,"%H:%M:%S").time()
time1.append(t)
plt.plot(time1,data)
plt.show()

