Created
July 4, 2017 09:27
-
-
Save flying-sheep/201d98a297b3ce1e3134b1f221697fd4 to your computer and use it in GitHub Desktop.
This file contains 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 random | |
with path.open('r', encoding='latin-1') as f: | |
f.readline() # header | |
lines = list(csv.reader(f, delimiter='\t')) | |
random.sample(lines, 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment