def __init__(self, table_id, url, df, columns={}, init_params={},
        paging=False, searching=False, sortable=False, classname="display",
        route_func=None, **kwargs):

        opts = {
            "params": init_params,
            "id": table_id,
            "url": url,
            "className": classname,
            "table_options": {
                "paging": paging,
                "searching": searching,
                "bSort": sortable
            }
        }

        for k, v in list(kwargs.items()):
            opts["table_options"][k] = v

        self.columns = columns
        self.confidence = {}
        for k, v in list(self.columns.items()):
            if v in "confidence":
                self.confidence[k] = v["confidence"]

        if not route_func:
            def get_data():
                args = {}
                for c in init_params:
                    if request.args.get(c):
                        args[c] = request.args[c]
                    else:
                        args[c] = init_params[c]
                return jsonify(DataTable.to_json(
                        self.apply_filters(df, args),
                        self.columns,
                        confidence=self.confidence
                    ))
            route_func = get_data

        super(DataTable, self).__init__("Table", opts, route_func)
dataset/ETHPy150Open stitchfix/pyxley/pyxley/charts/datatables/datatable.py/DataTable.__init__/swapped operands of `in`