Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • len(hourly_temp[i:i+24]) is quite likely to be 24. Commented Mar 14, 2014 at 15:58
  • @njzk2 except when you hit the end of the list, if there wasn't a multiple of 24 items in the original list... Commented Mar 14, 2014 at 16:11
  • true. I was assuming I have 8760 elements in the list is always true, but covering the larger case is indeed better. Commented Mar 14, 2014 at 16:12