Challenge: Visualize Multi-Stock Price Data
Swipe to start coding
You are provided with a pandas DataFrame df containing daily closing prices for four stocks (AAPL, GOOGL, AMZN, MSFT) over 15 consecutive days. Your task is to visualize all four stock price series on a single matplotlib line chart.
- Plot each stock's closing prices as a separate line on the same chart.
- Use distinct colors or line styles to make each stock clearly distinguishable.
- Add a descriptive chart title.
- Label both the x-axis (dates) and y-axis (price).
- Add a legend that identifies each stock by its ticker symbol.
This visualization will help you compare the performance of multiple stocks over time.
Ratkaisu
Kiitos palautteestasi!
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 4.76
Challenge: Visualize Multi-Stock Price Data
Pyyhkäise näyttääksesi valikon
Swipe to start coding
You are provided with a pandas DataFrame df containing daily closing prices for four stocks (AAPL, GOOGL, AMZN, MSFT) over 15 consecutive days. Your task is to visualize all four stock price series on a single matplotlib line chart.
- Plot each stock's closing prices as a separate line on the same chart.
- Use distinct colors or line styles to make each stock clearly distinguishable.
- Add a descriptive chart title.
- Label both the x-axis (dates) and y-axis (price).
- Add a legend that identifies each stock by its ticker symbol.
This visualization will help you compare the performance of multiple stocks over time.
Ratkaisu
Kiitos palautteestasi!
single