- ID
- 9107b54a-f6bb-4320-93a8-c25bc7f3c610
2020-10-08 - Thursday
DONE Journal
CLOSED:
- Note taken on
An incredibly windy day today. Bill Hutchins has been working on the new leech field and septic tank despite the weather. Watching the excavators move giant boulders and clear away some really rough ground has been impressive.
[[id:ac376401-a8b9-45c5-ab1a-4a77837bd03c][Partnership Squad Engineering Stand-up]]
<2020-10-08 Thu 8:30-9:00>
DONE Address PR changes with DictReader from [[id:d788300f-c740-4ad2-ad58-f3e39e278488][ENG-12811]]
CLOSED:
- ID
- bcdb6518-c2c2-4c7e-a1f9-ae87d46f7869
#+begin_src python :results output
import csv
fields = ['email', 'first_name']
with open('/tmp/in.csv', newline='') as infile:
reader = csv.DictReader(infile, fieldnames=fields)
# We have our field names, just skip the header row
next(reader)
with open('/tmp/out.csv', 'w', newline='') as outfile:
writer = csv.DictWriter(outfile, fieldnames=fields)
writer.writeheader()
for row in reader:
del row[None]
writer.writerow(row)
print('Wrote row: ', row)
#+end_src
#+RESULTS:
: Wrote row: {'email': 'colin@unbl.ink', 'first_name': 'Colin'}
: Wrote row: {'email': 'jane@unbl.ink', 'first_name': 'Jane'}
: Wrote row: {'email': 'logs@unbl.ink', 'first_name': 'Logs'}