Skip to content

Commit

Permalink
update how we store df results
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tzayats committed Dec 13, 2024
1 parent a00b526 commit ee90cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions journeys/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ def write_eval_results(frame: pd.DataFrame) -> None:

# Save results to frame as string
frame_to_write["ANALYST_RESULT"] = frame["ANALYST_RESULT"].apply(
lambda x: x.to_string(index=False) if isinstance(x, pd.DataFrame) else x
lambda x: x.to_json(orient="records") if isinstance(x, pd.DataFrame) else x
)
frame_to_write["GOLD_RESULT"] = frame["GOLD_RESULT"].apply(
lambda x: x.to_string(index=False) if isinstance(x, pd.DataFrame) else x
lambda x: x.to_json(orient="records") if isinstance(x, pd.DataFrame) else x
)
frame_to_write["SEMANTIC_MODEL_STRING"] = st.session_state["working_yml"]

Expand Down

0 comments on commit ee90cca

Please sign in to comment.