Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAA solution to last week’s challenge can be found here.
Do you check the weather before planning a trip to a foreign country?
The following dataset contains information about the temperature of various locations in Ireland. Your job is to find the following the average (rounded up), the minimum, and the maximum temperature by "Station" in the Spring, Summer, and Fall. Use only the temperature recorded at 12:00.
Note: Use the following dates to determine the seasons:
- Spring March 19
- Summer June 20
- Fall September 22
Thank you for your comments, this challenge has been updated.
Getting different values, not sure how the solution is doing it. For example the min spring temp in Athenry per the solution is 7.1, but in the data there are negative temperatures, for example on 4/11 which solidly falls within the spring range.
ps - also have to say that initially it looked like it was using "month" of march from 'year' of 2019, then discover that data is only 2012. Ok, but the way it's worded seems like it indicates use ONLY that day ie. March 19 of 2012. Yes you can 'assume' but remember data types have learned that 'assuming' things gets you in trouble and will use the instructions provided. Lastly it provides no 'end' date for the range of using fall, so you 'have' to assume an end date .... 2012-12-21? 2012-12-31? Lastly, since none of us are matching. It seems there are other built in assumptions not identified in the instructions. Is it by design to make the instructions ambiguous? Have us spend effort trying to figure out the unspoken assumptions in order to match? Since (let's be honest) you never actually get clear instructions in real life. I leave these various thoughts, but seems that instructions should be clear enough that we all land on the same number in the solution. Just my pennies.
Agreed with everyone, not matching the output and I double checked a few to feel comfortable with my output