def data_science_day_mapper(status_update):
 if ('data science' in status_update['text'].lower()):
  day_of_week = status_update['created_at'].weekday()
  (yield (day_of_week, 1))

def data_science_day_mapper ( status_update ) : if ( 'data science' in status_update [ 'text' ] . lower ( ) ) : day_of_week = status_update [ 'created_at' ] . weekday ( ) ( yield ( day_of_week , 1 ) )
yields if status_update contains "data science" .