Editing Community Data Science Workshops (Fall 2015)/Day 3 Lecture

From CommunityData

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Welcome to the Saturday lecture section of the Community Data Science Workshop Session 3! For about 140 minutes, we'll work through an example of a Python program end-to-end that answers of simple questions using data from the Wikipedia API via both a lecture and hand-on exercises.
== Resources ==
* [http://communitydata.cc/~mako/cdsw-au2015-lecture3-20151107.ogv Lecture Recording/Screencast] — The file is in [[:wiki:Theoro|OGV/Theora]] format. If you have trouble playing it, you can install the free software [https://www.videolan.org/vlc/index.html VLC software] which runs on Mac OSX, Windows and Linux and should be able to play the video. Keep in mind that there is lots of "dead" time where folks are working on things and getting help from mentors.
== Material for the lecture ==
== Material for the lecture ==


Line 33: Line 27:


* My philosophy about data analysis: ''use the tools you have''
* My philosophy about data analysis: ''use the tools you have''
* Four things in Python I have to teach you now and one more thing later):
* Four things in Python I have to teach you:
** while loops
** while loops
*** infinite loops
*** infinite loops
Line 40: Line 34:
** "\t".join()
** "\t".join()
** defining your own functions with <code>def foo(argument):</code> and <code>return bar</code>
** defining your own functions with <code>def foo(argument):</code> and <code>return bar</code>
** The <code>.update()</code> function that is associated with dictionaries.


'''Step 2: Walking through a Program'''
'''Step 2: Walking through a Program'''
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)