def remove_missing_targets(this_data,target_var):
    """
    Gets raw data and removes rows with missing targets

    Parameters
    ----------
    this_data : dataframe
        The raw data which has been compiled from Yahoo!Finance
    target_var : string
        Column name of target variable

    Returns
    -------
    this_data
        A dataframe without missing targets
    """

    this_data = this_data[~this_data[target_var].isnull()]
    this_data = this_data[~this_data["Date"].isnull()]
        
    return this_data