Skip to content

Instantly share code, notes, and snippets.

@dipta007
Created June 7, 2020 13:42
Show Gist options
  • Select an option

  • Save dipta007/07fa9c8f3fa90ce25c4ef7bc18f73c32 to your computer and use it in GitHub Desktop.

Select an option

Save dipta007/07fa9c8f3fa90ce25c4ef7bc18f73c32 to your computer and use it in GitHub Desktop.
import csv
def data_generator():
with open('nlp.csv') as fp:
reader = csv.reader(fp)
for row in reader:
yield row
for row in data_generator():
print(row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment