BaşlayınÜcretsiz Başlayın

Building a line plot

As a trader at a prestigious Wall Street investment firm, your boss has asked you to visualize Microsoft's stock performance over time. The firm needs to decide on a significant investment in tech stocks, and your analysis will help inform this critical decision.

You have been provided with a DataFrame called msft_df containing Microsoft's historical stock data. Your task is to create a clear and informative line chart that shows the stock's opening price trends over time.

Bu egzersiz

Introduction to Data Visualization with Plotly in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Create a line chart using the msft_df DataFrame with the "Date" column on the x-axis and the "Open" column on the y-axis.
  • Ensure your visualization has the title "Microsoft Stock Price".

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a line chart
fig = px.____(
  data_frame=____,  
  x="____", 
  y="____", 
  title="____")

# Display the plot
fig.show()
Kodu Düzenle ve Çalıştır