Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm new to using PowerBi and Python and have tried enrolling on a course that shows how to build up a stocks and shares dashboard. I've used the commenads suggested but Python is coming up with the following error
Details: "ADO.NET: Python script error.
<pi>ModuleNotFoundError: No module named 'yfinance'
</pi>"
The full script I'm using is as follows :
import pandas as pd
import yfinance as yf
ticker="AAPL"
data= yf.download(ticker, start="2019-01-01", end="2022-12-31")
Data.reset_index(inplace=True)
data
Can anyone give me any suggestions as to how to fix this please?
Thanks Steve
Solved! Go to Solution.
change
Data.reset_index(inplace=True)
to
data.reset_index(inplace=True)
Ahh brilliant That worked-didn't notice I had that capital at start-Thanks so much for your help 🙂
before you can use that module in Power BI you need to add it to your PC's Python install, via pip, for example.
Thanks lbendlin
change
Data.reset_index(inplace=True)
to
data.reset_index(inplace=True)
Ahh brilliant That worked-didn't notice I had that capital at start-Thanks so much for your help 🙂
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |