Created
June 7, 2020 13:42
-
-
Save dipta007/07fa9c8f3fa90ce25c4ef7bc18f73c32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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