top of page
Data Scraping: Lesson 5
In this lesson, the instructor teaches how to save scraped NBA player stats into a CSV file using Python. The CSV format helps organize the data into rows and columns, so it’s easy to use later in tools like Excel, R, or pandas.
The video walks through how to:
-
Open a CSV file in write ('w') or append ('a') mode,
-
Loop through player data and separate values with commas (to make columns),
-
Write all players to the file, with each one on a new row.
bottom of page