Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
36 | |
21 | |
18 | |
17 | |
10 |
User | Count |
---|---|
35 | |
34 | |
32 | |
19 | |
16 |