Dataframe Evaluation Methods (Python only)#
evaluate_dataframefor synchronous dataframe evaluationsasync_evaluate_dataframean asynchronous version for optimized speed and ability to specify concurrency.
Both methods run multiple evaluators over a pandas dataframe. The output is an augmented dataframe with two added columns per score:
{score_name}_scorecontains the JSON serialized score (or None if the evaluation failed){evaluator_name}_execution_detailscontains information about the execution status, duration, and any exceptions that occurred.
Notes:#
- Bind
input_mappingsto your evaluators beforehand so they match your dataframe columns. - Failed evaluations: If an evaluation fails, the failure details will be recorded in the execution_details column and the score will be None.
Examples#
- Evaluator with more than one score returned:
- Running multiple evaluators, one bound with an input_mapping:
- Asynchronous evaluation
See Using Evals with Phoenix to learn how to run evals on project traces and upload them to Phoenix.

