def reverse(x):
    if type(x) == pd.Series and dtype(x) == 'bool': return x == False
    elif istable(x)==1: return x.iloc[::-1]
    elif type(x) == list: return x[::-1]
    elif type(x) == dict: return {i[1]:i[0] for i in x.items()}