A commitment to innovation and sustainability

import yfinance as yf import matplotlib.pyplot as plt # Download historical data for the S&P 500 sp500 = yf.Ticker('^GSPC') hist = sp500.history(start='2009-01-01', end='2023-12-31') # Calculate the growth of $100 invested with dividends reinvested initial_investment = 100 hist['Dividends'] = hist['Dividends'].fillna(0) hist['Daily Return'] = hist['Close'].pct_change() + (hist['Dividends'] / hist['Close']) hist['Cumulative Return'] = (1 + hist['Daily Return']).cumprod() # Adjust the cumulative return to the initial investment hist['Investment Value'] = initial_investment * hist['Cumulative Return'] # Plot the investment growth plt.figure(figsize=(12, 6)) plt.plot(hist.index, hist['Investment Value'], label='S&P 500 with Dividends Reinvested') plt.title('Growth of $100 Invested in S&P 500 (2009-2023)') plt.xlabel('Year') plt.ylabel('Investment Value ($)') plt.legend() plt.grid(True) plt.show()
import yfinance as yf
import matplotlib.pyplot as plt

# Download historical data for the S&P 500
sp500 = yf.Ticker('^GSPC')
hist = sp500.history(start='2009-01-01', end='2023-12-31')

# Calculate the growth of $100 invested with dividends reinvested
initial_investment = 100
hist['Dividends'] = hist['Dividends'].fillna(0)
hist['Daily Return'] = hist['Close'].pct_change() + (hist['Dividends'] / hist['Close'])
hist['Cumulative Return'] = (1 + hist['Daily Return']).cumprod()

# Adjust the cumulative return to the initial investment
hist['Investment Value'] = initial_investment * hist['Cumulative Return']

# Plot the investment growth
plt.figure(figsize=(12, 6))
plt.plot(hist.index, hist['Investment Value'], label='S&P 500 with Dividends Reinvested')
plt.title('Growth of $100 Invested in S&P 500 (2009-2023)')
plt.xlabel('Year')
plt.ylabel('Investment Value ($)')
plt.legend()
plt.grid(True)
plt.show()

Études is a pioneering firm that seamlessly merges creativity and functionality to redefine architectural excellence.

Building exterior in Toronto, Canada

A passion for creating spaces

Our comprehensive suite of professional services caters to a diverse clientele, ranging from homeowners to commercial developers.

Renovation and restoration

Experience the fusion of imagination and expertise with Études Architectural Solutions.

Continuous Support

Experience the fusion of imagination and expertise with Études Architectural Solutions.

App Access

Experience the fusion of imagination and expertise with Études Architectural Solutions.

Consulting

Experience the fusion of imagination and expertise with Études Architectural Solutions.

Project Management

Experience the fusion of imagination and expertise with Études Architectural Solutions.

Architectural Solutions

Experience the fusion of imagination and expertise with Études Architectural Solutions.

An array of resources

Our comprehensive suite of professional services caters to a diverse clientele, ranging from homeowners to commercial developers.

Études Architect App

  • Collaborate with fellow architects.
  • Showcase your projects.
  • Experience the world of architecture.
Tourist taking photo of a building
Windows of a building in Nuremberg, Germany

Études Newsletter

  • A world of thought-provoking articles.
  • Case studies that celebrate architecture.
  • Exclusive access to design insights.

“Études has saved us thousands of hours of work and has unlocked insights we never thought possible.”

Annie Steiner

CEO, Greenprint

Watch, Read, Listen

Join 900+ subscribers

Stay in the loop with everything you need to know.