Summary
Keywords
Full Transcript
## π Python Data Curation: Filter Stock Tickers by S&P 500 & Sector with Pandas | Part 2 Welcome to Part 2 of the **Python Stock Analysis Course**! This video focuses on **data curation and filtering**βessential steps after acquiring the full list of exchange tickers in Part 1. You will learn how to write reusable functions to filter large metadata sets down to specific, actionable lists, which is vital for efficient testing and analysis. ### π― Key Learning Outcomes: 1. **Filter Exchange Data:** Create a function to filter all exchange-listed securities down to specific **security types** (e.g., 'Common Stock', 'ETF'). 2. **S&P 500 List:** Learn how to read and process a separate **S&P 500 CSV file** to get a current list of index members. 3. **Sector Filtering:** Implement Pandas logic to filter the S&P 500 list by **economic sector** (e.g., 'Energy', 'Technology'). ### β±οΈ Video Chapters (Jump Ahead!): 0:00 - Introduction & Review of Part 1 (Getting Exchange Data) 0:47 - **Function 1: Filtering by Security Type (Common Stock, ETF)** 2:00 - Returning the Filtered List of Symbols 3:18 - **Function 2: Getting S&P 500 Symbols and Metadata** 4:00 - Reviewing the S&P 500 CSV File Structure (Symbol, Name, Sector) 4:45 - Implementing Pandas Logic for **S&P 500 Sector Filtering** 5:50 - Testing the S&P 500 Function with a Sector Filter (e.g., Energy) 6:40 - Preview of Part 3: Downloading and Curating Historical Stock Data ### π Course Series & Resources: * **Part 1 (Watch First!):** [How to Get a List of Stocks on an Exchange](https://youtu.be/bKUZrBAzqJs) * **Get the Code:** https://github.com/mjmacarty/python-stock-analysis ***Disclaimer: This video is for educational purposes only. The information provided should not be construed as investment advice. *** \#PythonForFinance \#PandasDataFrames \#DataCuration \#SP500 \#StockTickers \#DataFiltering \#PythonTutorial \#Part2
