Forum Discussion
How to Python in power bi (csv file how to write dataset)
- Anonymous2 years ago
Hi Shweta_1585 ,
Based on the description, try to use the following code.
df = pandas.read_csv(r'path\to\your_file.csv')What’s more, it is not recommended to use python scripts to import data if you are new to python.
You can just select the csv.
You can also view the following documents to learn more information.
Solved: PYTHON INTEGRATION WITH POWER BI - IMPORTING EXCEL... - Microsoft Fabric Community
Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Shweta_1585 ,
Based on the description, try to use the following code.
df = pandas.read_csv(r'path\to\your_file.csv')
What’s more, it is not recommended to use python scripts to import data if you are new to python.
You can just select the csv.
You can also view the following documents to learn more information.
Solved: PYTHON INTEGRATION WITH POWER BI - IMPORTING EXCEL... - Microsoft Fabric Community
Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.