def return_most_common_venues(row, num_top_venues):
    """
    Function to sort venues in descending order
    :param row: Pandas row
    :param num_top_venues: Number of rows to sort by
    :return: 
    """
    row_categories = row.iloc[1:]
    row_categories_sorted = row_categories.sort_values(ascending=False)

    return row_categories_sorted.index.values[0:num_top_venues]