wsvreader.py: Replace "code examples" with "output"
wdoekes opened this issue · 1 comments
wdoekes commented
This bit is considered "code" by BCH.
# Yields this:
# {'column_name1': 'data1a',
# 'column_name2': 'data1b'}
# {'column_name1': 'data2a',
# 'column_name2': 'data2b',
# 'optional_column': 'data2c'}
# {'column_name1': '',
# 'column_name2': 'column1 is empty, column2 has spaces and "'}
# {'column_name1': 'data4a',
# 'column_name2': 'data4b',
# 'optional_column': 'data4c',
# 'extra0': 'data4d',
# 'extra1': 'column_names expand as necessary'}
Replace this:
reader = WsvReader(file)
for row in reader:
print row
with something different, like:
for key, value in row.items(): # ordered by OrderedDict
print '%s: %s' % (key, value)
wdoekes commented
Wrong project.