@staticmethod
    def apply_filters(df, filters):
        idx = pd.Series([True]*df.shape[0])
        for k, v in list(filters.items()):
            if k not in df.columns:
                continue
            idx &= (df[k] == v)

        return df.loc[idx]
Run one step of the calculator.
dataset/ETHPy150Open stitchfix/pyxley/pyxley/charts/charts.py/Chart.apply_filters--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/BlockDeviceCalculatorTests.run_convergence_step