Python Open Lab: Week 7

Due to the complex nature of functions, on April 1, we started with a review of functions with the following problem: We then introduced classes and methods: Classes: Python is an “object-oriented programming language.” This means that almost all the code is implemented using a special construct called classes. Programmers use classes to keep related things […]

Read More…

Highlights from the Data Collection: U.S. Election Data

The Libraries Numeric Data Catalog Holdings has some interesting data on the United States election results starting from 1912 to the most recent election year. Included are data on not only the presidential elections, but also gubernatorial, senatorial, congressional, and special senatorial elections. The source of the data is Dave Leip’s Atlas of U.S. Presidential […]

Read More…

Python Open Lab Nov 28: Blog Style!

Hello all, Due to some complex scheduling issues, I am posting here the material we would have covered in lab tomorrow. Please feel free to contact me for any questions (data@library.columbia.edu). Enjoy! Python Objects and Classes (cont’d!) Self:  What is the self variable in Python? The self variable represents the instance of the object itself. Unlike most object-oriented languages […]

Read More…

Fall 2017 Python Open Lab Week 1

Week 1 September 26 In week 1 of our Python Open lab, we introduced the Python Starter Kit and went over Python basics such as expressions, variables and statements, floats, statements, integers, strings, booleans, and control flow statements. The class was a mix of students with little to no experience with Python, to a few […]

Read More…