Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date_time value member
- 2013-10-09 09:00:00 664639 Jerome
- 2013-10-09 09:05:00 197290 Hence
- 2013-10-09 09:10:00 470186 Ann
- 2013-10-09 09:15:00 181314 Mikka
- 2013-10-09 09:20:00 969427 Cristy
- 2013-10-09 09:25:00 261473 James
- 2013-10-09 09:30:00 003698 Oliver
- date_start date_end
- 2013-10-09 09:19:00 2013-10-09 09:25:00
- 2013-10-09 09:25:00 2013-10-09 09:40:00
- def create_interval():
- intervals=[]
- for i in range(1,len(bounds)):
- for j in range(1, len(df)):
- mask[i] = df[(df['date'][j] > bounds.date_start[i]) & (df['date'][j] < bounds.date_end[i])]
- df_interval[i]=df.loc[mask[i]]
- intervals.append(df_interval.values)
- return intervals
- pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:3824)()
- pandas/index.pyx in pandas.index.IndexEngine.get_loc (pandas/index.c:3704)()
- pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12280)()
- pandas/hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12231)()
- KeyError: False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement