The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
43 | |
14 | |
13 | |
13 | |
9 |
User | Count |
---|---|
50 | |
38 | |
24 | |
22 | |
18 |