Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi,
I must read data from a lakehouse table in Fabric with an Azure Function (Python). However, I cannot find any code examples. Can anyone provide an example, or how to achieve this?
Regards from Norway!
Solved! Go to Solution.
Hi, I found that the easiest way to solve this was to write the data I need in the Azure Function as a csv file from a dataframe in a Python notebook and and read the data in Python code in the Azure with a Pandas dataframe:
This is the Azure Python Function code:
Hi, I found that the easiest way to solve this was to write the data I need in the Azure Function as a csv file from a dataframe in a Python notebook and and read the data in Python code in the Azure with a Pandas dataframe:
This is the Azure Python Function code:
Hi @AslakJonhaugen ,
To do this you must first connect to your Lake - for Python I believe that DirectLake mode is the best but I am not an expert in this area.
Then, install your python scripts from here - File > Options and settings > Options > Python scripting
Then, use your script to connect and do your operations.
Proud to be a Datanaut!
Private message me for consulting or training needs.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.