SlideShare a Scribd company logo
1 of 36
Download to read offline
Introducing. . . The Linux command line Python Next meetings
Big Data and Automated Content Analysis
Week 1 – Monday
»Introduction«
Damian Trilling
d.c.trilling@uva.nl
@damian0604
www.damiantrilling.net
Afdeling Communicatiewetenschap
Universiteit van Amsterdam
30 March 2015
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Today
1 Introducing. . .
. . . the people
. . . the topic
. . . the methods
. . . the tools
2 The Linux command line
3 Python
4 Next meetings
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the people
Introducing. . .
. . . the people
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the people
Introducing. . .
Damian dr. Damian Trilling
Lecturer Political Communication & Journalism
• studied Communication Science in Münster
and at the VU 2003–2009
• PhD candidate @ ASCoR 2009–2012
• now: Universitair Docent (UD) / Assistant
Professor
• interested in political communication and
journalism in a changing media environment
and in innovative (digital, large-scale,
computational) research methods
@damian0604 d.c.trilling@uva.nl
REC-C 8th
floor www.damiantrilling.net
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the people
Introducing. . .
Björn
Björn Burscher, MSc.
PhD Candidate
• studied Political Communication &
Information Science
• currently PhD candidate @ ASCoR
• interested in automatic content analysis and
elections
b.burscher@uva.nl
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the people
Introducing. . .
You
Your name?
Your background?
Your reason to follow this course?
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the topic
Introducing. . .
. . . the topic
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the topic
Introducing. . .
. . . the topic
⇒on Wednesday
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the methods
Introducing. . .
. . . the methods
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the methods
Introducing. . .
. . . the methods
⇒on Wednesday
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the tools
Introducing. . .
. . . the tools
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
. . . the tools
Introducing. . .
. . . the tools
⇒now!
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
When point-and-click doesn’t help you further:
The Linux command line
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Let’s switch to Linux!
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
a.k.a. the terminal, shell or, more specifically, bash
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
• Direct access to your computer’s functions
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
• Direct access to your computer’s functions
• In contrast to point-and-click programs, command line
programs can easily be linked to each other, scripted, . . .
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
• Direct access to your computer’s functions
• In contrast to point-and-click programs, command line
programs can easily be linked to each other, scripted, . . .
• Suitable for handling even huge files
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
• Direct access to your computer’s functions
• In contrast to point-and-click programs, command line
programs can easily be linked to each other, scripted, . . .
• Suitable for handling even huge files
• You simply cannot open them in many GUI programs
• . . . or it takes ages
• The command line allows you to do such things without
problems
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Tools: The linux command line
Why?
• Direct access to your computer’s functions
• In contrast to point-and-click programs, command line
programs can easily be linked to each other, scripted, . . .
• Suitable for handling even huge files
• You simply cannot open them in many GUI programs
• . . . or it takes ages
• The command line allows you to do such things without
problems
• It is reproducible (ever tried to explain to your parents on the
phone where they have to click?)
Big Data and Automated Content Analysis Damian Trilling
There are endless tutorials, cheat
sheets, videos . . . online. Google it!
Introducing. . . The Linux command line Python Next meetings
Exercise
Take the book.
Follow the instructions in Chapter 2.
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
A language, not a program:
Python
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Python
What?
• A language, not a specific program
• Huge advantage: flexibility, portability
• One of the languages for data analysis. (The other one is R.)
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Python
What?
• A language, not a specific program
• Huge advantage: flexibility, portability
• One of the languages for data analysis. (The other one is R.)
But Python is more flexible—the original version of Dropbox was written in Python. I’d say: R for
numbers, Python for text and messy stuff. But that’s just my personal view.
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Python
What?
• A language, not a specific program
• Huge advantage: flexibility, portability
• One of the languages for data analysis. (The other one is R.)
Which version?
We use Python 3.
http://www.google.com or http://www.stackexchange.com still offer a lot
of Python2-code, but that can easily be adapted. Most notable difference: In
Python 2, you write print "Hi", this has changed to print ("Hi")
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
If it’s not a program, how do you work with it?
Interactive mode
• Just type python3 on the command line, and you can start
entering Python commands (You can leave again by entering quit())
• Great for quick try-outs, but you cannot even save your code
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
If it’s not a program, how do you work with it?
Interactive mode
• Just type python3 on the command line, and you can start
entering Python commands (You can leave again by entering quit())
• Great for quick try-outs, but you cannot even save your code
An editor of your choice
• Write your program in any text editor, save it as myprog.py
• and run it from the command line with ./myprog.py or
python3 myprog.py
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
If it’s not a program, how do you start it?
An IDE (Integrated Development Environment)
• Provides an interface
• Both quick interactive try-outs and writing larger programs
• We use spyder, which looks a bit like RStudio (and to some
extent like Stata)
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Exercises
1. Run a program that greets you.
The code for this is
1 print("Hello world")
After that, do some calculations. You can do that in a similar way:
1 a=2
2 print(a*3)
Just play around.
2. Take the book.
Follow the instructions in Chapter 3.
We will talk about the concepts that are introduced during the
next lectures, but it helps if you first try to get started
yourself—that’s less abstract.
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Next meetings
Big Data and Automated Content Analysis Damian Trilling
Introducing. . . The Linux command line Python Next meetings
Next meetings
Wednesday, 1 April: Lecture
Introduction to the theoretical and methodological underpinnings.
Don’t forget to read the articles in advance.
Wednesday, 8 April: Lab Session
Some serious programming in Python
Big Data and Automated Content Analysis Damian Trilling

More Related Content

What's hot

Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning ParrotAI
 
Python for Big Data Analytics
Python for Big Data AnalyticsPython for Big Data Analytics
Python for Big Data AnalyticsEdureka!
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming LanguageTahani Al-Manie
 
Ground Gurus - Python Code Camp - Day 3 - Classes
Ground Gurus - Python Code Camp - Day 3 - ClassesGround Gurus - Python Code Camp - Day 3 - Classes
Ground Gurus - Python Code Camp - Day 3 - ClassesChariza Pladin
 
Introduction To Programming with Python
Introduction To Programming with PythonIntroduction To Programming with Python
Introduction To Programming with PythonSushant Mane
 
Lecture 3 basic syntax and semantics
Lecture 3  basic syntax and semanticsLecture 3  basic syntax and semantics
Lecture 3 basic syntax and semanticsalvin567
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Edureka!
 
Introduction to Structure Programming with C++
Introduction to Structure Programming with C++Introduction to Structure Programming with C++
Introduction to Structure Programming with C++Mohamed Essam
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python amiable_indian
 
Lecture 4 variables data types and operators
Lecture 4  variables data types and operatorsLecture 4  variables data types and operators
Lecture 4 variables data types and operatorsalvin567
 

What's hot (20)

BDACA1617s2 - Lecture6
BDACA1617s2 - Lecture6BDACA1617s2 - Lecture6
BDACA1617s2 - Lecture6
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
 
BD-ACA week5
BD-ACA week5BD-ACA week5
BD-ACA week5
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python for Big Data Analytics
Python for Big Data AnalyticsPython for Big Data Analytics
Python for Big Data Analytics
 
Python45 2
Python45 2Python45 2
Python45 2
 
Python training
Python trainingPython training
Python training
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
 
Ground Gurus - Python Code Camp - Day 3 - Classes
Ground Gurus - Python Code Camp - Day 3 - ClassesGround Gurus - Python Code Camp - Day 3 - Classes
Ground Gurus - Python Code Camp - Day 3 - Classes
 
Python ppt
Python pptPython ppt
Python ppt
 
Introduction To Programming with Python
Introduction To Programming with PythonIntroduction To Programming with Python
Introduction To Programming with Python
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
Python programming l2
Python programming l2Python programming l2
Python programming l2
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Pa1 session 2
Pa1 session 2 Pa1 session 2
Pa1 session 2
 
Lecture 3 basic syntax and semantics
Lecture 3  basic syntax and semanticsLecture 3  basic syntax and semantics
Lecture 3 basic syntax and semantics
 
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
Python Tutorial For Beginners | Python Crash Course - Python Programming Lang...
 
Introduction to Structure Programming with C++
Introduction to Structure Programming with C++Introduction to Structure Programming with C++
Introduction to Structure Programming with C++
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Lecture 4 variables data types and operators
Lecture 4  variables data types and operatorsLecture 4  variables data types and operators
Lecture 4 variables data types and operators
 

Similar to BD-ACA week1a

Similar to BD-ACA week1a (20)

BDACA - Tutorial1
BDACA - Tutorial1BDACA - Tutorial1
BDACA - Tutorial1
 
Py4 inf 01-intro
Py4 inf 01-introPy4 inf 01-intro
Py4 inf 01-intro
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Pythonlearn-01-Intro.pptx
Pythonlearn-01-Intro.pptxPythonlearn-01-Intro.pptx
Pythonlearn-01-Intro.pptx
 
python programming.pptx
python programming.pptxpython programming.pptx
python programming.pptx
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Python
Python Python
Python
 
py4inf-01-intro.ppt
py4inf-01-intro.pptpy4inf-01-intro.ppt
py4inf-01-intro.ppt
 
Python Introduction its a oop language and easy to use
Python Introduction its a oop language and easy to usePython Introduction its a oop language and easy to use
Python Introduction its a oop language and easy to use
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction to python lecture (1)
Introduction to python lecture (1)Introduction to python lecture (1)
Introduction to python lecture (1)
 
Python basic
Python basicPython basic
Python basic
 
python into.pptx
python into.pptxpython into.pptx
python into.pptx
 

More from Department of Communication Science, University of Amsterdam

More from Department of Communication Science, University of Amsterdam (20)

BDACA - Lecture8
BDACA - Lecture8BDACA - Lecture8
BDACA - Lecture8
 
BDACA - Lecture7
BDACA - Lecture7BDACA - Lecture7
BDACA - Lecture7
 
BDACA - Lecture6
BDACA - Lecture6BDACA - Lecture6
BDACA - Lecture6
 
BDACA - Tutorial5
BDACA - Tutorial5BDACA - Tutorial5
BDACA - Tutorial5
 
BDACA - Lecture4
BDACA - Lecture4BDACA - Lecture4
BDACA - Lecture4
 
BDACA - Lecture3
BDACA - Lecture3BDACA - Lecture3
BDACA - Lecture3
 
BDACA - Lecture2
BDACA - Lecture2BDACA - Lecture2
BDACA - Lecture2
 
BDACA - Lecture1
BDACA - Lecture1BDACA - Lecture1
BDACA - Lecture1
 
BDACA1617s2 - Lecture4
BDACA1617s2 - Lecture4BDACA1617s2 - Lecture4
BDACA1617s2 - Lecture4
 
BDACA1617s2 - Lecture 1
BDACA1617s2 - Lecture 1BDACA1617s2 - Lecture 1
BDACA1617s2 - Lecture 1
 
Media diets in an age of apps and social media: Dealing with a third layer of...
Media diets in an age of apps and social media: Dealing with a third layer of...Media diets in an age of apps and social media: Dealing with a third layer of...
Media diets in an age of apps and social media: Dealing with a third layer of...
 
Conceptualizing and measuring news exposure as network of users and news items
Conceptualizing and measuring news exposure as network of users and news itemsConceptualizing and measuring news exposure as network of users and news items
Conceptualizing and measuring news exposure as network of users and news items
 
Data Science: Case "Political Communication 2/2"
Data Science: Case "Political Communication 2/2"Data Science: Case "Political Communication 2/2"
Data Science: Case "Political Communication 2/2"
 
Data Science: Case "Political Communication 1/2"
Data Science: Case "Political Communication 1/2"Data Science: Case "Political Communication 1/2"
Data Science: Case "Political Communication 1/2"
 
BDACA1516s2 - Lecture8
BDACA1516s2 - Lecture8BDACA1516s2 - Lecture8
BDACA1516s2 - Lecture8
 
BDACA1516s2 - Lecture7
BDACA1516s2 - Lecture7BDACA1516s2 - Lecture7
BDACA1516s2 - Lecture7
 
BDACA1516s2 - Lecture6
BDACA1516s2 - Lecture6BDACA1516s2 - Lecture6
BDACA1516s2 - Lecture6
 
BDACA1516s2 - Lecture5
BDACA1516s2 - Lecture5BDACA1516s2 - Lecture5
BDACA1516s2 - Lecture5
 
BDACA1516s2 - Lecture4
 BDACA1516s2 - Lecture4 BDACA1516s2 - Lecture4
BDACA1516s2 - Lecture4
 
BDACA1516s2 - Lecture3
BDACA1516s2 - Lecture3BDACA1516s2 - Lecture3
BDACA1516s2 - Lecture3
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

BD-ACA week1a

  • 1. Introducing. . . The Linux command line Python Next meetings Big Data and Automated Content Analysis Week 1 – Monday »Introduction« Damian Trilling d.c.trilling@uva.nl @damian0604 www.damiantrilling.net Afdeling Communicatiewetenschap Universiteit van Amsterdam 30 March 2015 Big Data and Automated Content Analysis Damian Trilling
  • 2. Introducing. . . The Linux command line Python Next meetings Today 1 Introducing. . . . . . the people . . . the topic . . . the methods . . . the tools 2 The Linux command line 3 Python 4 Next meetings Big Data and Automated Content Analysis Damian Trilling
  • 3. Introducing. . . The Linux command line Python Next meetings . . . the people Introducing. . . . . . the people Big Data and Automated Content Analysis Damian Trilling
  • 4. Introducing. . . The Linux command line Python Next meetings . . . the people Introducing. . . Damian dr. Damian Trilling Lecturer Political Communication & Journalism • studied Communication Science in Münster and at the VU 2003–2009 • PhD candidate @ ASCoR 2009–2012 • now: Universitair Docent (UD) / Assistant Professor • interested in political communication and journalism in a changing media environment and in innovative (digital, large-scale, computational) research methods @damian0604 d.c.trilling@uva.nl REC-C 8th floor www.damiantrilling.net Big Data and Automated Content Analysis Damian Trilling
  • 5. Introducing. . . The Linux command line Python Next meetings . . . the people Introducing. . . Björn Björn Burscher, MSc. PhD Candidate • studied Political Communication & Information Science • currently PhD candidate @ ASCoR • interested in automatic content analysis and elections b.burscher@uva.nl Big Data and Automated Content Analysis Damian Trilling
  • 6. Introducing. . . The Linux command line Python Next meetings . . . the people Introducing. . . You Your name? Your background? Your reason to follow this course? Big Data and Automated Content Analysis Damian Trilling
  • 7. Introducing. . . The Linux command line Python Next meetings . . . the topic Introducing. . . . . . the topic Big Data and Automated Content Analysis Damian Trilling
  • 8. Introducing. . . The Linux command line Python Next meetings . . . the topic Introducing. . . . . . the topic ⇒on Wednesday Big Data and Automated Content Analysis Damian Trilling
  • 9. Introducing. . . The Linux command line Python Next meetings . . . the methods Introducing. . . . . . the methods Big Data and Automated Content Analysis Damian Trilling
  • 10. Introducing. . . The Linux command line Python Next meetings . . . the methods Introducing. . . . . . the methods ⇒on Wednesday Big Data and Automated Content Analysis Damian Trilling
  • 11. Introducing. . . The Linux command line Python Next meetings . . . the tools Introducing. . . . . . the tools Big Data and Automated Content Analysis Damian Trilling
  • 12. Introducing. . . The Linux command line Python Next meetings . . . the tools Introducing. . . . . . the tools ⇒now! Big Data and Automated Content Analysis Damian Trilling
  • 13. Introducing. . . The Linux command line Python Next meetings When point-and-click doesn’t help you further: The Linux command line Big Data and Automated Content Analysis Damian Trilling
  • 14.
  • 15. Introducing. . . The Linux command line Python Next meetings Let’s switch to Linux! Big Data and Automated Content Analysis Damian Trilling
  • 16. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line a.k.a. the terminal, shell or, more specifically, bash Big Data and Automated Content Analysis Damian Trilling
  • 17. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Big Data and Automated Content Analysis Damian Trilling
  • 18. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? Big Data and Automated Content Analysis Damian Trilling
  • 19. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? • Direct access to your computer’s functions Big Data and Automated Content Analysis Damian Trilling
  • 20. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? • Direct access to your computer’s functions • In contrast to point-and-click programs, command line programs can easily be linked to each other, scripted, . . . Big Data and Automated Content Analysis Damian Trilling
  • 21. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? • Direct access to your computer’s functions • In contrast to point-and-click programs, command line programs can easily be linked to each other, scripted, . . . • Suitable for handling even huge files Big Data and Automated Content Analysis Damian Trilling
  • 22. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? • Direct access to your computer’s functions • In contrast to point-and-click programs, command line programs can easily be linked to each other, scripted, . . . • Suitable for handling even huge files • You simply cannot open them in many GUI programs • . . . or it takes ages • The command line allows you to do such things without problems Big Data and Automated Content Analysis Damian Trilling
  • 23. Introducing. . . The Linux command line Python Next meetings Tools: The linux command line Why? • Direct access to your computer’s functions • In contrast to point-and-click programs, command line programs can easily be linked to each other, scripted, . . . • Suitable for handling even huge files • You simply cannot open them in many GUI programs • . . . or it takes ages • The command line allows you to do such things without problems • It is reproducible (ever tried to explain to your parents on the phone where they have to click?) Big Data and Automated Content Analysis Damian Trilling
  • 24. There are endless tutorials, cheat sheets, videos . . . online. Google it!
  • 25. Introducing. . . The Linux command line Python Next meetings Exercise Take the book. Follow the instructions in Chapter 2. Big Data and Automated Content Analysis Damian Trilling
  • 26. Introducing. . . The Linux command line Python Next meetings A language, not a program: Python Big Data and Automated Content Analysis Damian Trilling
  • 27. Introducing. . . The Linux command line Python Next meetings Python What? • A language, not a specific program • Huge advantage: flexibility, portability • One of the languages for data analysis. (The other one is R.) Big Data and Automated Content Analysis Damian Trilling
  • 28. Introducing. . . The Linux command line Python Next meetings Python What? • A language, not a specific program • Huge advantage: flexibility, portability • One of the languages for data analysis. (The other one is R.) But Python is more flexible—the original version of Dropbox was written in Python. I’d say: R for numbers, Python for text and messy stuff. But that’s just my personal view. Big Data and Automated Content Analysis Damian Trilling
  • 29. Introducing. . . The Linux command line Python Next meetings Python What? • A language, not a specific program • Huge advantage: flexibility, portability • One of the languages for data analysis. (The other one is R.) Which version? We use Python 3. http://www.google.com or http://www.stackexchange.com still offer a lot of Python2-code, but that can easily be adapted. Most notable difference: In Python 2, you write print "Hi", this has changed to print ("Hi") Big Data and Automated Content Analysis Damian Trilling
  • 30. Introducing. . . The Linux command line Python Next meetings If it’s not a program, how do you work with it? Interactive mode • Just type python3 on the command line, and you can start entering Python commands (You can leave again by entering quit()) • Great for quick try-outs, but you cannot even save your code Big Data and Automated Content Analysis Damian Trilling
  • 31. Introducing. . . The Linux command line Python Next meetings If it’s not a program, how do you work with it? Interactive mode • Just type python3 on the command line, and you can start entering Python commands (You can leave again by entering quit()) • Great for quick try-outs, but you cannot even save your code An editor of your choice • Write your program in any text editor, save it as myprog.py • and run it from the command line with ./myprog.py or python3 myprog.py Big Data and Automated Content Analysis Damian Trilling
  • 32. Introducing. . . The Linux command line Python Next meetings If it’s not a program, how do you start it? An IDE (Integrated Development Environment) • Provides an interface • Both quick interactive try-outs and writing larger programs • We use spyder, which looks a bit like RStudio (and to some extent like Stata) Big Data and Automated Content Analysis Damian Trilling
  • 33.
  • 34. Introducing. . . The Linux command line Python Next meetings Exercises 1. Run a program that greets you. The code for this is 1 print("Hello world") After that, do some calculations. You can do that in a similar way: 1 a=2 2 print(a*3) Just play around. 2. Take the book. Follow the instructions in Chapter 3. We will talk about the concepts that are introduced during the next lectures, but it helps if you first try to get started yourself—that’s less abstract. Big Data and Automated Content Analysis Damian Trilling
  • 35. Introducing. . . The Linux command line Python Next meetings Next meetings Big Data and Automated Content Analysis Damian Trilling
  • 36. Introducing. . . The Linux command line Python Next meetings Next meetings Wednesday, 1 April: Lecture Introduction to the theoretical and methodological underpinnings. Don’t forget to read the articles in advance. Wednesday, 8 April: Lab Session Some serious programming in Python Big Data and Automated Content Analysis Damian Trilling