I have data of idle duration of a system as follows:
Date | Idle Time Start | Idle Time End | Idle Duration |
2017/07/11 | 10:36:21 | 10:37:28 | 67 |
2017/07/11 | 10:45:44 | 10:46:58 | 74 | .......
I want to check whether the idle duration is linear or non linear using python. My second question is if I want to predict idle duration for future time then any suggestions that how can I convert this data into dataframe so that i can perform some kind of regression analysis. I have stored the idle duration and the starting of idle duration in an array. I have also plotted the data using the following code:
SampleOne, Times = get_idletime_set(1000)
FMT = '%Y-%m-%d %H:%M:%S'
Dates=[]
for i in Times:
Dates.append(datetime.strptime(i, FMT))
plt.plot(Dates, SampleOne)
plt.ylabel('Idle Duration')
plt.xlabel('Time')
plt.show()
I got this graph. enter image description here
The obtained graph is not straight line. Does it mean that idle duration is not linear with respect to time.