Forum Discussion
AI functions with PySpark error
- 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?
Hi Mauro89
Could you let us know if the issue was resolved after creating the support case?If you have any further questions, please let us know. we can assist you further.
Regards,
Microsoft Fabric Community Support Team
- Mauro898 months agoSuper User
Hi v-karpurapud,
we are still on it, trying to figure out whats the issue.
I will keep the thread posted 🙂
Best regards!
- v-karpurapud8 months agoCommunity Support
Hi Mauro89
Thank You for the response.- Mauro898 months agoSuper User
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?