def get_higher_closing_price(df):
    """returns the exchange with the higher closing price"""

    # exchange 1 has higher closing price
    if (df['close_exchange_1'] - df['close_exchange_2']) > 0:
        return 1

    # exchange 2 has higher closing price
    elif (df['close_exchange_1'] - df['close_exchange_2']) < 0:
        return 2

    # closing prices are equivalent
    else:
        return 0