borrowed data escapes outside of function error for Vec<&str> #3122
Unanswered
paladin158
asked this question in
Questions
Replies: 1 comment
-
Since the lazy evaluation seems to require owned data, the most straight forward solution would be to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am testing out
groupby
,agg
andapply
custom functions feature with Polars, Polars-PyO3, and PyO3. However, the simple example as shown below won't compile (seems to be borrow lifetime related according to the error message).So, I am curious to know how am I supposed to fix such an error to make the following code compile?
Compiler error message:
As another attempt, when I add
'static
lifetime annotations on the function signature, I got another compiler error.New function signature:
Compile error message:
Beta Was this translation helpful? Give feedback.
All reactions