As data become ‘big’, fast and complex, the software and computing tools needed to manage and analyse them are rapidly developing. Social scientists need new tools to meet these challenges, tackle big datasets, while also developing a more nuanced understanding of – and control over – how these computing tools and algorithms are implemented. Programming with Python for Social Scientists offers a vital foundation to one of the most popular programming tools in computer science, specifically for social science researchers, assuming no prior coding knowledge. It guides you through the full research process, from question to publication, including:
- the fundamentals of why and how to do your own programming in social scientific research,
- questions of ethics and research design,
- a clear, easy to follow ‘how-to’ guide to using Python, with a wide array of applications such as data visualisation, social media data research, social network analysis, and more.
Accompanied by numerous code examples, screenshots, sample data sources, this is the textbook for social scientists looking for a complete introduction to programming with Python and incorporating it into their research design and analysis.
Chapter 1. What is Programming? And What Could it Mean for Social Science Research?
Chapter 2. Programming-as-Social-Science (Critical Coding
Chapter 3. Setting Up to Start Coding
Chapter 4. Core Concepts/Objects
Chapter 5. Structuring Objects
Chapter 6. Building Better Code with (Slightly) More Complex Concepts/Objects
Chapter 7. Building New Objects with Classes
Chapter 8. Useful Extra Concepts/Practices
Chapter 9. Designing Research that Features Programming
Chapter 10. Working with Text Files
Chapter 11. Data Collection: Using Social Media APIs
Chapter 12. Data Decoding/Encoding in Popular Formats (CSV, JSON and XML)
Chapter 13. Data Collection: Web Scraping
Chapter 14. Visualising Data
Conclusion: Using Your Programming-as-Social-Science Mindset