Forum Discussion
Cannot convert numpy type object to spark type
Hi Anonymous
I followed the tutorials without experiencing any error. Instead of entering codes manually, I downloaded and imported notebooks from microsoft/fabric-samples ยท GitHub. You can try running these notebooks and see if they work. Ensure that you need to attach the same lakehouse you used in the other parts of this series.
For the error you encountered, you can check the output of the previous code cell of the problem code. At the same time make sure that the attached lakehouse is correct. "df_test" is a table created in Tutorial Part 3.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- Anonymous1 year agoNot applicable
Thank you for taking time to reply to my question. I followed the same steps exactly as you mentioned in your reply. Downloaded the notebooks from GitHub, followed the sequence of steps as mentioned in tutorial, no changes to note book code, all steps ran absolutely fine until this particular cell as mentioned in my initial question. Any more insights as to what is causing this error and how to resolve it?
- Anonymous1 year agoNot applicable
Hi Anonymous
I tested it again and it still worked at my end. I got nothing but a warning.
I guess maybe our environment is a little different? I ran the notebook in Runtime 1.2. My service version is 13.0.24766.49 and data region is UK South (London). Can you check your environment?
Best Regards,
Jing- Anonymous1 year agoNot applicable
Hi Anonymous
Thank you for your answers, I followed your suggestion and switched to Runtime 1.2. I can ensure that I did upload and execute those notebooks without any modification, and I tried to run all the previous 3 notebooks and used the same Runtime 1.2.
Unfortunately, I'm facing this new error
any idea how to fix this? Thanks.