Skip to content

Instantly share code, notes, and snippets.

@rafaelhenrique
Last active December 3, 2018 18:01
Show Gist options
  • Select an option

  • Save rafaelhenrique/a1027bd1a6b731678a5ed59f38a80375 to your computer and use it in GitHub Desktop.

Select an option

Save rafaelhenrique/a1027bd1a6b731678a5ed59f38a80375 to your computer and use it in GitHub Desktop.
Read csv file
import csv
with open('file.csv', 'r', encoding='utf-8-sig') as csvfile:
reader = csv.DictReader(csvfile)
data = [line for line in reader]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment