def METHOD_NAME(df):
    df = df[df.x>4]
    assert df.x.tolist() == list(range(5,10))
    df.add_variable("production", True)
    df = df.filter("production", mode="or")
    df = df[df.x>=0] # restore old filter (df_filtered)
    df = df[df.x<10] # restore old filter (df_filtered)
    assert df.x.tolist() == list(range(10))