## Brandon Rozek

April 11, 2020

If you want to analyze a CSV dataset that is larger than the space available in RAM, then you can iteratively process each observation and store/calculate only what you need. There is a way to do this in standard Python as well as the popular library Pandas.

## Standard Library

import csv
with open('/path/to/data.csv', newline='') as csvfile:

Pandas is slightly different in where you specify a chunksize which is the number of rows per chunk and you get a pandas dataframe with that many rows
import pandas as pd