def rotate_table(df):
    """
    Given a pandas dataframe, rotates values 180 degrees (keeping indices).
    
    Keyword arguments:
    :param df: pandas dataframe (no default)
    :return: rotated pandas dataframe
    """

    # Flip rows
    flipped_df = df.copy()
    row_count = len(df.index)
    loop_i = 1
    for row in df.iterrows():
        index = row_count - loop_i
        flipped_df.iloc[index, :] = row[1].values
        loop_i += 1
    
    # Flip columns
    rotated_df = flipped_df.copy()
    column_count = len(flipped_df.columns)
    loop_i = 0
    for column in flipped_df:
        index = column_count - loop_i
        rotated_df[index] = flipped_df[column]
        loop_i += 1
    
    print('Rotated table 180 degrees.')
    return rotated_df