Calling statsmodels
methods to use in rust
#3948
-
Hello! I'd like to call methods from the
Where the polars dataframe passed to the function has the following fields and types:
And the error I receive when printing
And my
My questions are:
Thanks so much for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for the slow reply 🙈
|
Beta Was this translation helpful? Give feedback.
Sorry for the slow reply 🙈
You can use the
.traceback()
method on thePyErr
error type. That has a.format()
method on it to turn it into the kind of Python traceback string you're used to seeing.Afraid I don't have a good answer for that either. At a guess, the
statsmodels
package is expecting to be called from Python rather than Rust, and it's triggered an error.f_locals
is referring to Python frame objects. Maybe printing the traceback from (1) can give hints.