Code School for Kids

Open and Read csv Files with Python

Often you will want to work with real data. Sometimes the data you want is available online other times the data you want is on your computer. One of the most common forms you see data in is .csv, or common separated values. Learning how to work with this kind data is imperative. Fortunately there are a number of ways to do this easily with Python. The video below demonstrates several methods of opening and reading csv files using the csv library, which is part of the standard Python library, and pandas.

You can get a copy of the notebook used in the video here. Along with the data used: S&P 500 Monthly