![]() |
|
How to Calculate Mutual Fund Percent Change Using Python yfinance? - Printable Version +- Proxy Community (https://proxycommunity.com/forum) +-- Forum: Use Case (https://proxycommunity.com/forum/forum-use-case) +--- Forum: Others (https://proxycommunity.com/forum/forum-others) +--- Thread: How to Calculate Mutual Fund Percent Change Using Python yfinance? (/thread-how-to-calculate-mutual-fund-percent-change-using-python-yfinance) |
“” - SecureStalker77 - 22-03-2025 Wow, thanks so much, everyone! This is super helpful. I tried the `.history()` method and `.pct_change()` like you all suggested, and it worked like a charm. I was able to pull the data and calculate the percent change for the mutual fund I was looking at. One quick follow-up: how do you handle cases where the mutual fund ticker isn’t available on yfinance? I tried a few, and some just didn’t return any data. Is there a workaround for that? Thanks again, y’all! You’ve been a huge help. |