You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def timeindexer(self, l, value, a, b):
if a < b: #Here, it should be a <= b.
#Otherwise, if the a=b, the person will be 'away' for a whole day, and you will get a 0 denominator in ‘pdf /= np.sum(pdf)’
l[a:b] = value
else:
l[a:len(l)] = value
l[0:b] = value
return l
The text was updated successfully, but these errors were encountered:
def timeindexer(self, l, value, a, b):
if a < b: #Here, it should be a <= b.
#Otherwise, if the a=b, the person will be 'away' for a whole day, and you will get a 0 denominator in ‘pdf /= np.sum(pdf)’
l[a:b] = value
else:
l[a:len(l)] = value
l[0:b] = value
return l
The text was updated successfully, but these errors were encountered: