Andreas Jungherr
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
  • Home
  • About
  • Blog
  • Publications
    • Digital Transformations of the Public Arena (2022)
    • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
    • Analyzing Political Communication with Digital Trace Data (2015)
    • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
  • Podcast: Tech and Politics
  • Media
  • Teaching
  • Impressum
23 Oct 2016
Andreas Jungherr Teaching
2016/10/23 Andreas Jungherr

Introduction to 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.

Big Data, Computational Social Science, Course Material, Python, Using Digital Trace Data in the Social Sciences
  • Recent Posts

    • Interview mit hr-iNFO: Trump twittert wieder
    • Welche Rolle spielt Desinformation in den US Midterms 2022?
    • New Publication: Review of Vaccari & Valeriani – Outside the Bubble (2021)
    • Lehrveranstaltungen Wintersemester 2022/3
    • Keynote: Digitaler Wandel im Kaleidoskop der Sozialwissenschaft
  • Categories

    • Conferences
    • Interviews
    • Lecture Podcast
    • News
    • Notes
    • Public Speaking
    • Publications
    • Teaching
    • Videos
  • Archives

    • December 2022 (1)
    • November 2022 (1)
    • October 2022 (3)
    • July 2022 (1)
    • June 2022 (4)
    • May 2022 (2)
    • April 2022 (1)
    • February 2022 (1)
    • January 2022 (2)
    • December 2021 (3)
    • November 2021 (1)
    • October 2021 (2)
    • September 2021 (3)
    • July 2021 (1)
    • June 2021 (4)
    • April 2021 (3)
    • March 2021 (2)
    • January 2021 (1)
    • December 2020 (1)
    • November 2020 (2)
    • October 2020 (2)
    • September 2020 (1)
    • July 2020 (1)
    • June 2020 (1)
    • April 2020 (5)
    • March 2020 (2)
    • February 2020 (1)
    • January 2020 (4)
    • November 2019 (1)
    • October 2019 (2)
    • September 2019 (1)
    • July 2019 (1)
    • April 2019 (3)
    • January 2019 (1)
    • November 2018 (1)
    • September 2018 (2)
    • March 2018 (1)
    • February 2018 (1)
    • December 2017 (1)
    • October 2017 (1)
    • September 2017 (1)
    • July 2017 (2)
    • June 2017 (1)
    • May 2017 (3)
    • April 2017 (2)
    • March 2017 (2)
    • January 2017 (2)
    • December 2016 (1)
    • November 2016 (1)
    • October 2016 (17)
    • July 2016 (11)
    • June 2016 (1)
    • March 2016 (1)
    • February 2016 (2)
    • January 2016 (1)
    • November 2015 (3)
    • October 2015 (1)
    • September 2015 (3)
    • May 2015 (1)
    • April 2015 (3)
    • March 2015 (3)
    • February 2015 (3)
    • January 2015 (1)
    • October 2014 (2)
    • August 2014 (2)
    • April 2014 (1)
    • March 2014 (1)
    • February 2014 (2)
    • December 2013 (1)
    • October 2013 (3)
    • September 2013 (3)
    • August 2013 (4)
    • July 2013 (3)
    • June 2013 (2)
    • May 2013 (1)
    • April 2013 (1)
    • March 2013 (1)
    • February 2013 (1)
    • December 2012 (1)
    • November 2012 (2)
    • October 2012 (3)
    • September 2012 (3)
    • August 2012 (2)
    • June 2012 (1)
    • April 2012 (8)
    • March 2012 (1)
    • February 2012 (1)
    • October 2011 (2)
    • September 2011 (1)
    • August 2011 (1)
    • July 2011 (5)
    • June 2011 (2)
    • May 2011 (4)
    • April 2011 (1)
    • March 2011 (2)
    • February 2011 (3)
    • January 2011 (2)
    • December 2010 (3)
    • November 2010 (1)
    • October 2010 (1)
    • September 2010 (3)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (1)
    • April 2010 (4)
    • March 2010 (3)
    • February 2010 (6)
    • January 2010 (1)
    • December 2009 (3)
    • August 2009 (1)
    • April 2009 (1)
    • March 2009 (3)
    • January 2009 (2)
    • December 2008 (3)
    • November 2008 (3)
    • October 2008 (9)
    • August 2008 (1)
  • On the web

    • instagram
    • linkedin
    • twitter
    • xing
    • youtube
  • Navigation

    • Home
    • About
    • Blog
    • Publications
      • Digital Transformations of the Public Arena (2022)
      • Retooling Politics: How Digital Media Are Shaping Democracy (2020)
      • Analyzing Political Communication with Digital Trace Data (2015)
      • Das Internet in Wahlkämpfen: Konzepte, Wirkungen und Kampagnenfunktionen (2013)
    • Podcast: Tech and Politics
    • Media
    • Teaching
    • Impressum
  • Contact

    • Feldkirchenstraße 21
      96052 Bamberg, Germany

    • https://andreasjungherr.net/
    • andreas.jungherr[at]uni-bamberg.de
Andreas Jungherr POWERED BY United Themes™