def half_full_to_half(data):
    """
    Convert single half court movement to shot log dimensional movement

    Parameters
    ----------
    data: pandas.DataFrame
        dataframe containing SportVU movement data that is converted to
        a single half court (x_loc < 47)

    Returns
    -------
    data: pandas.DataFrame
        dataframe containing SportVU movement data that is converted
        to the single shooting court that follows shot log dimensions
        (-250-250, -47.5-422.5)
    """
    # convert to half court scale
    # note the x_loc and the y_loc are switched in shot charts from movement data (charts are perpendicular)
    data['x_loc_copy'] = data['x_loc']
    data['y_loc_copy'] = data['y_loc']

    # Range conversion formula
    # http://math.stackexchange.com/questions/43698/range-scaling-problem

    data['x_loc'] = data['y_loc_copy'].apply(lambda y: 250 * (1 - (y - 0)/(50 - 0)) + -250 * ((y - 0)/(50 - 0)))
    data['y_loc'] = data['x_loc_copy'].apply(lambda x: -47.5 * (1 - (x - 0)/(47 - 0)) + 422.5 * ((x - 0)/(47 - 0)))
    data = data.drop(['x_loc_copy', 'y_loc_copy'], axis=1, inplace=False)

    return data