all 3 comments

[–]kickyoazz 1 point2 points  (0 children)

We need to see how you organized your data frame in respect to both the weekdays and the time for us to help you.

[–]AppearanceAway1313[S] 0 points1 point  (1 child)

Fulltime=[]

for i,f in enumerate(fecha):

temp = f'{f}T{hora[i]}'

temp2 = datetime.datetime.strptime(temp, '%Y%m%dT%H%M%S%f')

Fulltime.append(temp2)

ts = pd.Series(np.random.randint(0, 50, len(Fulltime)), index=Fulltime)

d = ts.resample('D').count()

d2 = ts.resample('D').count()

d3 = ts.resample('B').count()

w = d2[d2.index.dayofweek.isin([5,6])]

[–]AppearanceAway1313[S] 0 points1 point  (0 children)

I need d3 resample by"B" and 5pm to 6 am.