Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*. If you prefer python 3's semantics but need support in py2, you probably want https://github.com/ryanhiebert/backports.csv
From the (hacky, I'll admit) StackOverflow answer https://stackoverflow.com/a/39110711/188, you should be able to swizzle the fieldnames attribute, and stuff should still work.
When using unicodecsv.DictReader, this behaviour does not apply: the yielded dicts still have the original keys.
From the (hacky, I'll admit) StackOverflow answer https://stackoverflow.com/a/39110711/188, you should be able to swizzle the
fieldnames
attribute, and stuff should still work.When using
unicodecsv.DictReader
, this behaviour does not apply: the yielded dicts still have the original keys.