Too Bad You Never Knew Ace Hanna

Don't know where we're goin', but there's no sense bein' late.
Skip to content
  • Home
  • About
    • CV
  • Publications
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen (2013)
  • Talks
  • Media
  • Impressum

Top Tags

  • Big Data 44
  • Campaigning 50
  • Computational Social Science 71
  • Course Material 29
  • Political Communication 69
  • Political Science 32
  • Python 30
  • Social Media 62
  • Social Science 39
  • Twitter 78
  • Using Digital Trace Data in the Social Sciences 29
  • All Tags 731

Introduction to Python (Using Digital Trace Data in the Social Sciences)

Oct 23, ’16 10:00 AM
Author Andreas Jungherr Categories Teaching Tags Big Data, Computational Social Science, Course Material, Python, Using Digital Trace Data in the Social Sciences

In this session, we will learn some fundamentals in working with Python. So make sure you have a working copy of Python running on your machine.

In this session, we will concentrate on very basic functionality in using Python as to allow you to read and modify some of the example scripts provided the Python tutorial underlying the course. We will have a look at some basic commands in Python, how to write and open Python scripts from the command line, flow control in scripts, and the definition and loading of functions.

The examples given in the session will largely follow those given in two excellent introductory tutorials.

  • Swaroop Chitlur: A Byte of Python.
  • Al Sweigart (2015): Automate the Boring Stuff with Python: Practical Programming for Total Beginners. No Starch Press.

For a more comprehensive introduction, make sure to check out The Quick Python Book by Naomi Ceder:

  • Naomi Ceder (2018) The Quick Python Book. 3rd ed. Manning Publications.

We will have only time to discuss a small selection of content covered in these tutorials but make sure to spend some time after the course working through these tutorials. This will help you massively in becoming more self-proficient in the use of Python and ultimately allow you much more flexibility in collecting and analyzing digital trace data.

Another option for teaching yourself the basics of Python is a free interactive introductory course to Python offered by codecademy.

For a guide to further readings in working with Python from a social scientist’s perspective make sure to check out Nick Eubank‘s Data Analysis in Python.

As you have probably gathered by now, this session will only offer you the most preliminary of introductions to the use of Python. But do not worry. If you caught the bug, there are excellent guides available to you taking you further down the rabbit hole.

For a broader view of collecting digital trace data beyond Twitter see:

  • Matthew A. Russell. Mining the Social Web. 2nd ed. Sebastopol, CA: O’Reilly Media, 2014.

For a very helpful introduction to data analysis with Python see:

  • Wes McKinney (2017) Python for Data Analysis 2nd ed. O’Reilly Media, Inc.

For a handy introduction to machine learning with Python see:

  • Sebastian Raschka. Python Machine Learning. 2015. PACKT Publishing.

Remember, you might have online access to O’Reilly and PACKT books through your university’s library.

‹ Previous Post Set Up and Introduction to Collecting Data on Twitter (Using Digital Trace Data in the Social Sciences)
› Next Post Collecting Data Through Twitter’s API (Using Digital Trace Data in the Social Sciences)
  • Categories

    • Bits and pieces
    • Call for Papers
    • Conferences
    • Daily Fragments
    • Errata
    • Essays
    • In Passing
    • Interviews
    • Journal Articles
    • Photography
    • Presentations
    • Public Speaking
    • Publications
    • Reviews
    • Teaching
    • Uncategorized
    • Videos
    • Writing and Presenting
  • Archives

    • Nov 2019 1 entry
    • Oct 2019 2 entries
    • Sep 2019 1 entry
    • Jul 2019 1 entry
    • Apr 2019 3 entries
    • Jan 2019 1 entry
    • Nov 2018 1 entry
    • Sep 2018 2 entries
    • Mar 2018 1 entry
    • Feb 2018 1 entry
    • Dec 2017 1 entry
    • Oct 2017 1 entry
    • Sep 2017 1 entry
    • Jul 2017 2 entries
    • Jun 2017 1 entry
    • May 2017 3 entries
    • Apr 2017 2 entries
    • Mar 2017 2 entries
    • Jan 2017 2 entries
    • Nov 2016 1 entry
    • Oct 2016 17 entries
    • Jul 2016 11 entries
    • Jun 2016 1 entry
    • Mar 2016 1 entry
    • Feb 2016 2 entries
    • Jan 2016 1 entry
    • Nov 2015 3 entries
    • Oct 2015 1 entry
    • Sep 2015 3 entries
    • May 2015 1 entry
    • Apr 2015 3 entries
    • Mar 2015 3 entries
    • Feb 2015 3 entries
    • Jan 2015 1 entry
    • Oct 2014 2 entries
    • Aug 2014 2 entries
    • Apr 2014 1 entry
    • Mar 2014 1 entry
    • Feb 2014 2 entries
    • Dec 2013 1 entry
    • Oct 2013 3 entries
    • Sep 2013 3 entries
    • Aug 2013 4 entries
    • Jul 2013 3 entries
    • Jun 2013 2 entries
    • May 2013 1 entry
    • Apr 2013 1 entry
    • Mar 2013 1 entry
    • Feb 2013 1 entry
    • Dec 2012 1 entry
    • Nov 2012 2 entries
    • Oct 2012 3 entries
    • Sep 2012 3 entries
    • Aug 2012 2 entries
    • Jun 2012 1 entry
    • Apr 2012 8 entries
    • Mar 2012 1 entry
    • Feb 2012 1 entry
    • Oct 2011 2 entries
    • Sep 2011 1 entry
    • Aug 2011 1 entry
    • Jul 2011 5 entries
    • Jun 2011 2 entries
    • May 2011 4 entries
    • Apr 2011 1 entry
    • Mar 2011 2 entries
    • Feb 2011 3 entries
    • Jan 2011 2 entries
    • Dec 2010 3 entries
    • Nov 2010 1 entry
    • Oct 2010 1 entry
    • Sep 2010 3 entries
    • Jul 2010 1 entry
    • Jun 2010 2 entries
    • May 2010 1 entry
    • Apr 2010 4 entries
    • Mar 2010 3 entries
    • Feb 2010 6 entries
    • Jan 2010 1 entry
    • Dec 2009 3 entries
    • Sep 2009 18 entries
    • Aug 2009 25 entries
    • Jul 2009 14 entries
    • Jun 2009 19 entries
    • May 2009 23 entries
    • Apr 2009 11 entries
    • Mar 2009 23 entries
    • Feb 2009 22 entries
    • Jan 2009 23 entries
    • Dec 2008 14 entries
    • Nov 2008 20 entries
    • Oct 2008 29 entries
    • Sep 2008 3 entries
    • Aug 2008 1 entry
  • Recent Posts

    • Impulsvortrag: Fakultätstag Informatik
    • Syllabus: Die Analyse politischer Effekte Digitaler Medien – Methoden und Konzepte
    • Syllabus: Methoden der Sozialwissenschaftlichen Text- und Bildanalyse
    • New Publication: Digital Media and the Surge of Political Outsiders
    • Normalizing Digital Trace Data: SICSS edition
  • Recent Comments

    • Orlando Lyra Jr on Normalizing Digital Trace Data
    • Using Digital Trace Data in the Social Sciences (Konstanz 2016/7) | Too Bad You Never Knew Ace Hanna on Set Up and Introduction to Collecting Data on Twitter (Using Digital Trace Data in the Social Sciences)
    • Using Digital Trace Data in the Social Sciences (Konstanz 2016/7) | Too Bad You Never Knew Ace Hanna on Introduction and Conceptual Issues in the Use of Digital Trace Data in Social Science, Computational Social Science, Digital Methods, and Big Data (Using Digital Trace Data in the Social Sciences)
    • Sozialwissenschaftliches Arbeiten mit Twitter-Daten: Luzern-Edition | Too Bad You Never Knew Ace Hanna on Sozialwissenschaftliches Arbeiten mit Twitter-Daten (Luzern): Session 2 – Set Up and Introduction to Collecting Data on Twitter
    • Sozialwissenschaftliches Arbeiten mit Twitter-Daten (Luzern): Session 8 – How to Find a Research Project? | Too Bad You Never Knew Ace Hanna on Sozialwissenschaftliches Arbeiten mit Twitter-Daten: Luzern-Edition
  • Blogroll

    • Daniel Gayo-Avello
    • Darren Lilleker
    • Jan Schmidt
    • Joachim Jungherr
    • Kai Arzheimer
    • Panagiotis "Takis" Metaxas
    • Rasmus Kleis Nielsen
    • Sven Przepiorka
  • More Info

    • RSS Feed for Entries
    • RSS Feed for Comments
    • Powered by WordPress

©2008-2015 Andreas Jungherr. All rights reserved. RSS feed. This site uses the Basic Maths theme for WordPress, designed by Khoi Vinh & Allan Cole.