Guest User

Untitled

a guest
Nov 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. date station
  2. 30/10/2017 15:20 A
  3. 30/10/2017 15:45 A
  4. 31/10/2017 07:10 A
  5. 31/10/2017 07:25 B
  6. 31/10/2017 07:55 B
  7.  
  8. date station count
  9. 30/10/2017 16:00 A 2
  10. 31/10/2017 08:00 A 1
  11. 31/10/2017 08:00 B 2
  12.  
  13. df_start_tmp = df_trip[['Start Date', 'Start Station']]
  14.  
  15. times = pd.DatetimeIndex(df_start_tmp['Start Date'])
  16.  
  17. df_start = df_start_tmp.groupby([times.hour, df_start_tmp['Start Station']]).count()
Add Comment
Please, Sign In to add comment