Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: benkrikler <mr.krikler@googlemail.com>
  • Loading branch information
eshwen and benkrikler authored Nov 6, 2020
1 parent 51cccc6 commit 01efcf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fast_plotter/postproc/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 01efcf0

Please sign in to comment.