import pickle


def data_pickle_load(city, year, month):
    """
    Load data from a Data class object pickle. See Data.pickle_dump

    Parameters
    ----------
    city : str
        The identification of the city. For a list of supported cities, see
        the documentation for the Data class.
    year : int
        The year of interest in YYYY format.
    month : int
        The month of interest in MM format.

    Returns
    -------
    object of Data class
    """

    with open(f'./python_variables/big_data/data_{city}{year:d}{month:02d}.pickle', 'rb') as file:
        return pickle.load(file)