reading csv files using unicode csv as dict

import unicodecsv def main(): with open('test.csv', 'rb') as f: reader = unicodecsv.DictReader(f, delimiter='\t') for row in reader: print(row) if __name__ == '__main__': main()
This code is a basic example to read csv files using unicode csv module.

To install unicodecsv : pip install unicodecsv

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.