Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Last active February 2, 2021 08:35
Show Gist options
  • Select an option

  • Save deanjamesss/a69f06d5372a40b4d298af618dc4d8cf to your computer and use it in GitHub Desktop.

Select an option

Save deanjamesss/a69f06d5372a40b4d298af618dc4d8cf to your computer and use it in GitHub Desktop.
import pandas as pd
# From our CSV we only want to read columns 1 & 2.
df = pd.read_csv('read_csv_usecols.csv', usecols=['col1', 'col3'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment