View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Working with big data in Python

You can read file or read from a url (website) using Python
(see slide 39-42 of Ch10-CreatingAndModifyingText-3e.ppt)

You can use a dictionary to keep a count for each word in a file
wordCount = {}
count = wordCount["string"]
wordCount["string"] = count + 1

You can find the minimum value, maximum value, and average from a list of numbers. You can also count the number of times a value appears.

You can create wordle's based on the counts http://www.wordle.net





Link to this Page