def load_data(filename: str) -> pd.DataFrame:
    '\n    Load city daily temperature dataset and preprocess data.\n    Parameters\n    ----------\n    filename: str\n        Path to house prices dataset\n\n    Returns\n    -------\n    Design matrix and response vector (Temp)\n    '
    data = pd.read_csv(filename, parse_dates=['Date']).drop_duplicates()
    data = data.drop(data[(data['Temp'] < (- 70))].index)
    data['DayOfYear'] = data['Date'].dt.dayofyear
    return data
Load city daily temperature dataset and preprocess data.
Parameters
----------
filename: str
    Path to house prices dataset

Returns
-------
Design matrix and response vector (Temp)
def load_data(filename: str) -> pd.DataFrame:
    '\n    Load city daily temperature dataset and preprocess data.\n    Parameters\n    ----------\n    filename: str\n        Path to house prices dataset\n\n    Returns\n    -------\n    Design matrix and response vector (Temp)\n    '
    data = pd.read_csv(filename, parse_dates=['Date']).drop_duplicates()
    data = data.drop(data[(data['Temp'] < (- 70))].index)
    data['DayOfYear'] = data['Date'].dt.dayofyear
    return data