def get_trips(gtfs_info):
    """Extract trips attributes from GTFS info DataFrame"""
    trip_cols = ['route_id', 'service_id', 'trip_id', 'trip_headsign',
        'direction_id']
    trips = gtfs_info.drop_duplicates(subset=['route_id', 'service_id',
        'trip_id'])
    trips = trips[trip_cols].copy()
    trips = trips.reset_index(drop=True)
    trips['direction_id'] = trips['direction_id'].astype(int)
    return trips
