How to Use yfinance for Mutual Fund Percent Change Tracking?

22 Replies, 1877 Views

Nice post! I’ve been using yfinance for mutual fund percent change tracking too, and it’s been pretty straightforward. One thing I’d add is to consider using `pandas` for more advanced data manipulation.

For example, you can calculate the cumulative percent change over time:
```python
data['Cumulative_Change'] = (data['Close'] - data['Close'].iloc[0]) / data['Close'].iloc[0] * 100
```
Super helpful for long-term tracking!

Messages In This Thread



Users browsing this thread: 1 Guest(s)