Skip to content

Commit

Permalink
fix: deprecated pandas method removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Sep 30, 2024
1 parent 4e3c1c5 commit b391771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dfcx_scrapi/tools/nlu_evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def run_evals(self, df: pd.DataFrame, chunk_size: int = 300,
# When a NO_MATCH occurs, the detected_intent field will be blank
# this replaces with NO_MATCH string, which will allow for easier stats
# calculation downstream
results.detected_intent.replace({"": "NO_MATCH"}, inplace=True)
results['detected_intent'] = results['detected_intent'].replace(
{"": "NO_MATCH"})

logging.info(f"{logsx} {eval_run_display_name} COMPLETE {logsx}")

Expand Down

0 comments on commit b391771

Please sign in to comment.