import pickle


def get_plankton(path, *plankton_sets):
    """Returns plankton training sets converted from serialised pickle objects
        into Pandas dataframes.
    Args:
        path ([path]): Path to pickled training sets
        plankton_sets (*[pkl]): Four * pkl objects
    Returns:
        [pd.DataFrames]: Two training sets (measurements/random - 1987-2008)
                         Two of same config. but 2079-2100 (for future PDP's)
    """
    p_sets = []
    for p_set in plankton_sets:
        with open(f"{path}/{p_set}.pkl", "rb") as handle:
            plankton_set = pickle.load(handle)
        p_sets.append(plankton_set)
    return [p_sets[i] for i in range(len(p_sets))]