Hello Python-devs,
The csv module is probably heavily utilized by newcomers to Python, being a very popular data exchange format.
Although, there are better tools for processing tabular data like SQLite, or Pandas, I suspect this is still a very popular
module.
There are many examples floating around how one can read and process CSV with the csv module.
Quite a few tutorials show how to use namedtuple to gain memory saving and speed, over the DictReader.
Python's own documentation has got a recipe in the collections modules[1]
Hence, I was wondering why not go the extra step and add a new class to the CSV module NamedTupleReader?
This class would do a good service for Python's users, especially newcomers who are still not aware of
modules like the collections module.
Would someone be willing to sponsor and review such a PR from me?
As a smaller change, we could simply add a link from the CSV module's documentation to the recipe in the collections module.
What do you think?
Best regards
Oz
---
Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace
_______________________________________________