import pickle


def read_pickle(csv_file):
    """Helper to read a pickle file corresponding to a csv file."""
    with open(csv_file.replace('.csv', '.pickle'), 'rb') as f:
        p = pickle.load(f)

    return p