Tech Stock Prices
  • AI Chat
  • Code
  • Report
  • Beta
    Spinner

    Tech Stock Prices

    This dataset consists of the daily stock prices and volume of ten different tech companies: Apple (AAPL), Amazon (AMZN), Alibaba (BABA), Salesforce (CRM), Facebook (FB), Alphabet (GOOG), Intel (INTC), Microsoft (MSFT), Nvidia (NVDA), and Tesla (TSLA).

    There are ten CSV files in the data/ folder named with the stock symbol for each of the ten companies listed above. Looking for another company? You can download it from Yahoo Finance and upload it to your workspace.

    Not sure where to begin? Scroll to the bottom to find challenges!

    import pandas as pd
    
    pd.read_csv("data/AAPL.csv")

    Data Dictionary

    ColumnExplanation
    DateDate of observation
    OpenOpening price
    HighHighest price during trading day
    LowLowest price during trading day
    CloseClose price
    Adj CloseAdjusted close price adjusted for splits and dividend and/or capital gain distribution
    VolumeNumber of shares traded during trading day

    Source of dataset.

    Don't know where to start?

    Challenges are brief tasks designed to help you practice specific skills:

    • πŸ—ΊοΈ Explore: Which of the ten companies has the highest closing price based on the most recent data?
    • πŸ“Š Visualize: Create a plot that visualizes the closing price at the end of each month for the 10 tech stocks.
    • πŸ”Ž Analyze: Which of the ten companies have experienced the greatest percent increase in closing price over the course of their existence?

    Scenarios are broader questions to help you develop an end-to-end project for your portfolio:

    You have been hired as an analyst for a small investment firm. They currently specialize in commodities, focusing on coffee, cocoa, and sugar. However, they are now interested in expanding to technology companies. Your manager has asked you to explore the returns and volatilities of the ten stocks provided and contrast them with the three commodities they currently invest in.

    They also want you to recommend how tech stocks could be integrated into a portfolio with the existing commodities they invest in to minimize risk while gaining exposure to the new market.

    You will need to prepare a report that is accessible to a broad audience. It should outline your motivation, steps, findings, and conclusions.

    Commodity prices can be found here.

    tech=pd.read_csv("data/AAPL.csv")
    
    tech.head(2)

    for the function .loc (rows, columns)

    : = all rows or columns depending on where you place it

    #series
    
    tech.loc[0,:]
    #df
    
    tech.loc[[0,1,2],:]
    tech.loc[[0,],:]
    tech.loc[0:2, :]
    tech.loc[:, ['High']]
    import pandas as pd
    tech=pd.read_csv("data/AAPL.csv")
    
    tech.head()
    
    
    
    tech.loc[:,['Open','High']]
    tech.head()
    β€Œ
    β€Œ
    β€Œ