Skip to content

Commit

Permalink
Making engine for querying more robust in case numexpr isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
eshwen committed Nov 6, 2020
1 parent 59e1857 commit 51cccc6
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 @@ -29,7 +29,7 @@ def __call__(self, row):


def handle_one_df(df, query=None, replacements=[],
combine_dims=[], combine_dims_ignore=None, combine_delim="__", engine_query="numexpr"):
combine_dims=[], combine_dims_ignore=None, combine_delim="__", engine_query=None):
if query:
df.query(query, inplace=True, engine=engine_query)
if df.empty:
Expand All @@ -51,7 +51,7 @@ def handle_one_df(df, query=None, replacements=[],
return df


def query(df, query, engine_query="numexpr"):
def query(df, query, engine_query=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
Expand Down

0 comments on commit 51cccc6

Please sign in to comment.