GithubHelp home page GithubHelp logo

robodellaz / betterpython Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zstumgoren/betterpython

0.0 2.0 0.0 24 KB

Code exercises for Write Better Python workshop at NICAR19

License: MIT License

Python 100.00%

betterpython's Introduction

Write Better Python

Tutorial on using functions and modules to improve code readability and design, as part of a multi-step data pipeline.

Created for the Write Better Python session at NICAR 2019 conference in Newport Beach, CA.

The tutorial steps through several iterations of code that downloads, cleans and summarizes some fake election data. Along the way we add some basic test coverage so we can more confidently change the code.

The directories in this repo contain:

  • elex1 - a single gnarly, tear-inducing script
  • elex2 - a single script that uses functions and adds some test coverage
  • elex3 - a series of modules that can be run as stand-alone scripts, and an "orchestrator" script to run the full pipeline

betterpython's People

Contributors

zstumgoren avatar

Watchers

James Cloos avatar Rob O'Dell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.