DSPy: The framework for programming—not prompting—language models
Python
Fix applymap deprecation warning
quajake145529ece0e
diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.pyindex 27358ed4f..50c1bcc21 100644--- a/dspy/evaluate/evaluate.py+++ b/dspy/evaluate/evaluate.py@@ -140,7 +140,7 @@ class Evaluate:df = pd.DataFrame(data)# Truncate every cell in the DataFrame- df = df.applymap(truncate_cell)+ df = df.map(truncate_cell)# Rename the 'correct' column to the name of the metric objectassert(callable(metric))