plotnine geom_smooth formula exp not defined

35 Views Asked by At

I'm using

+ geom_smooth(method="lm", formula= ("y ~ exp(x)")) 

in plotnine, but I got the following error:

NameError: name 'exp' is not defined

I haven't used ggplot in R, but I saw this works in R. How do I make this work in python?

Thanks!

0

There are 0 best solutions below