Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
DS4UX (Spring 2016)/Day 7 coding challenge
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Each of the challenges this week will ask you to modify and work with code in the Week 7 lecture project dataset which you should have installed and begun working with in class. As always, it's not essential that you solve or get through all of these β I'm not grading your answers on these. That said, being ''able to'' work through at least many of them is a good sign that you have mastered the concepts for the week. It is always fine to collaborate or work together on these problem sets. == Challenges == 1. Using <code>challenge01_traffic_getMonthToll.py</code>, write a function called getMonthToll which returns monthly toll from bgt_traffic dataset, Parameters: string of a month and a year (e.g., month = β07β, year = β2014β). Return type: integer of total toll for the month. You may use βgetDayToll()β to get monthly toll. 2. Using <code>challenge02_traffic_writeYearToll.py</code>, Code challenge activity #2. Write a function called writeYearToll which saves monthly toll of a given year. Parameter: a string of year (e.g., β2014β) (e.g., "2014β makes β2014.csvβ and save a string like: β06/01, xxxx \n 02, xxxx\n β¦ 12, xxxx"). 3. Using <code>challenge03_wiki_theMostRevised.py</code>, write a function called theMostRevised() which receives a list of keywords and return the most highly revised keyword in Wikipedia. <!-- === Solutions === <big>'''[http://jtmorgan.net/ds4ux/week7/custom-functions-solutions.zip Click here to download the solutions to this week's coding challenges]'''</big> --> [[Category:DS4UX (Spring 2016)]]
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information