Revision 1133
Added by Aaron Marcuse-Kubitza almost 13 years ago
map | ||
---|---|---|
197 | 197 |
except KeyError: pass |
198 | 198 |
|
199 | 199 |
def get_value(in_, row): |
200 |
value = row[in_] |
|
200 |
try: value = row[in_] |
|
201 |
except KeyError: pass |
|
201 | 202 |
if value != '': return value |
202 | 203 |
else: return None |
203 | 204 |
row_ct = map_rows(get_value, reader) |
Also available in: Unified diff
bin/map: Allow maps for CSV inputs to contain entries for columns that are not in the CSV file