From 01efcf05d34d5c5aab7cc18e41bd4848b5a23a65 Mon Sep 17 00:00:00 2001 From: Eshwen Bhal Date: Fri, 6 Nov 2020 22:27:10 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: benkrikler --- fast_plotter/postproc/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast_plotter/postproc/functions.py b/fast_plotter/postproc/functions.py index 86d31e3..e44c328 100644 --- a/fast_plotter/postproc/functions.py +++ b/fast_plotter/postproc/functions.py @@ -51,13 +51,13 @@ def handle_one_df(df, query=None, replacements=[], return df -def query(df, query, engine_query=None): +def query(df, query, engine=None): """ Keep only rows that satisfy requirements of the query string, See: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html """ logger.info("Applying query: %s", query) - return handle_one_df(df, query=query, engine_query=engine_query) + return handle_one_df(df, query=query, engine_query=engine) def rebin(df, axis, mapping, ignore_when_combining=None, rename=None, drop_others=False):