From dc0350db1b1dc7469db9f6218b8f1643ff14cdbc Mon Sep 17 00:00:00 2001 From: Alexander Beedie Date: Mon, 18 Sep 2023 09:08:31 +0000 Subject: [PATCH] fix(python,rust): make error message consistent with other calls to python functions from rust --- py-polars/src/map/lazy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/src/map/lazy.rs b/py-polars/src/map/lazy.rs index 7138e8c00309..817840f08bef 100644 --- a/py-polars/src/map/lazy.rs +++ b/py-polars/src/map/lazy.rs @@ -157,7 +157,7 @@ pub(crate) fn call_lambda_with_series_slice( // call the lambda and get a python side Series wrapper match lambda.call1(py, (wrapped_s,)) { Ok(pyobj) => pyobj, - Err(e) => panic!("python apply failed: {}", e.value(py)), + Err(e) => panic!("python function failed: {}", e.value(py)), } }