You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chuck mentioned that you can use DictReader within csv to read the contents of the file. Here is an example of doing just that and the print out. I added this to the end of the l_04_csv_example.py file.
Thanks Julio! I was just too lazy to do that myself. :-)
Which I discovered just this week, as I'm doing the code for Flask, kind of a mini-quokka, and wanted to read in YAML, JSON, and CSV via a REST API, and wanted the CSV to be Dict-based, but saw that I hadn't used DictReader (only DictWriter) in the lesson. So, I wrote a DictReader example, but it is just in the Flask module.
So thanks for that code that does it in the CSV example area!
Hello All,
Chuck mentioned that you can use DictReader within csv to read the contents of the file. Here is an example of doing just that and the print out. I added this to the end of the l_04_csv_example.py file.
Thanks again Chuck!
The text was updated successfully, but these errors were encountered: