Differences between revisions 1 and 2
Revision 1 as of 2005-12-02 03:15:19
Size: 945
Editor: DavidGoodger
Comment:
Revision 2 as of 2005-12-02 03:44:50
Size: 995
Editor: DavidGoodger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Beginning to intermediate programmers Beginning to intermediate programmers.
A basic working knowledge of Python is assumed.

Intended Audience

Beginning to intermediate programmers. A basic working knowledge of Python is assumed.

Summary

This tutorial will introduce beginning to intermediate programmers to the many useful Python tools & techniques for text and data processing. Topics will include regular expressions, filtering data with generators, and parsing.

Outline

  • Common data sources needing processing:
    • log files
    • CSV
    • tabular data
    • email
    • XML
  • Tools & techniques:
    • lists & dicts
    • s.join(list) instead of accumulating
    • for line in file
    • filters, large data sources: generators
    • decorate-sort-undecorate
    • StringIO
  • Regular expressions:
    • pattern matching
    • filtering
    • substitution
    • splitting
  • Parsing:
    • s.split()
    • s.find()
    • regular expressions
    • "real" parsers
    • state machines

Trainer: David Goodger

PyCon2006/Tutorials/TextProcessing (last edited 2008-11-15 14:01:15 by localhost)

Unable to edit the page? See the FrontPage for instructions.