Forum Discussion

Mauro89's avatar
Mauro89
Super User
8 months ago
Solved

AI 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...
  • Mauro89's avatar
    Mauro89
    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 Pandas
    import synapse.ml.spark.aifunc as aifunc --> for PySpark
     
    Nevertheless, thanks for the support here in this thread!
    v-karpurapud may I can take my own answer as solution?