datalad-handbook/docs/challenges/_examples/cha-102-103-provenance-3
2025-06-05 17:20:39 +02:00

12 lines
284 B
Text

$ cat << EOT > code/extract.py
from os.path import join as opj
import csv
with open(opj('inputs', 'iris.csv')) as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
if row['variety'] != 'Setosa':
continue
print(row['petal.length'])
EOT