Forum Discussion
Mauro89
Super User
9 months agoAI functions with PySpark error
Hi there, I have tried the AI functions capabilities in notebooks. The example with pandas dataframe worked for me. But the example as of the MS documentation with PySpark does not work. Example...
- 8 months ago
v-karpurapud sooooo. I turned out to be the issue was sitting infront of the screen not in the screen 😅
I was only importing the libary for pandas and was not award that the pyspark library is a different one. So for all ready this post, the solution is to import the correct relevant library.
import synapse.ml.aifunc as aifunc --> for Pandasimport synapse.ml.spark.aifunc as aifunc --> for PySparkNevertheless, thanks for the support here in this thread!v-karpurapud may I can take my own answer as solution?
Mauro89
Super User
9 months agoThanks v-karpurapud for clarification.
I have created a ticket and will keep this thread posted about the solution.
v-karpurapud
Community Support
9 months agoHi Mauro89
Thanks for the update. Hope your issue gets resolved soon. when it does, please share the insights with the community as it can be helpful to others.