def filter_weekday_mornings(X):
	"""
	Select rides that occur on weekday mornings only.
	"""
	morning_hours = [7,8,9] #7am-10am according to trip advisor.

	X['day_of_week'] = X.pickup_datetime.apply(lambda z: z.dayofweek)
	X['hour'] = X.pickup_datetime.apply(lambda z: z.hour)

	X = X[X.hour.isin(morning_hours)]
	X = X[X.day_of_week.isin(range(0,5))]

	del X['day_of_week']
	del X['hour']

	return X