Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make a frequency table
#4
(Dec-20-2018, 01:30 PM)davidm Wrote: I already have a csv file going back a few years, so presumably I can forget collections.defaultdict
No, my understanding is each day is a row. So, you will need to parse the file and create some data structure that will store all the numbers for given month (and year?). That's where the defaultdict comes handy.

Again, this is if you are not going to use pandas
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
make a frequency table - by davidm - Dec-20-2018, 10:27 AM
RE: make a frequency table - by buran - Dec-20-2018, 12:44 PM
RE: make a frequency table - by davidm - Dec-20-2018, 01:30 PM
RE: make a frequency table - by buran - Dec-20-2018, 01:40 PM
RE: make a frequency table - by davidm - Dec-23-2018, 11:34 AM
RE: make a frequency table - by Gribouillis - Dec-23-2018, 11:49 AM
RE: make a frequency table - by davidm - Dec-23-2018, 12:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Make a table from a json output carstenlp 13 26,947 Jan-12-2019, 09:06 PM
Last Post: carstenlp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020