SlideShare a Scribd company logo
1 of 9
Python vs and R in
Data Science
Ravi Ranjan Prasad Karn
raviranjankarn@yahoo.com
Data Scientist
Python
 Python is a high-level general purpose language.
 It is developed by Computer programmers.
 One of the mottos of Python language is code readability.
 There is a way of writing Python program effectively. That is called Pythonic way of writing the
program.
R
 R is primarily a programming language for statistical computing and graphics.
 It is written by statisticians. The creators of R language are statistician who know
more about computers than their peers and they are computer programmers who
know more statistics than their peers.
Difference between Python and R
 Both Python and R have large software ecosystem and community for their use in Data Science. Both
are vastly used as Data Science tools. But there are few areas where one has advantages over other.
Area in which Python is better
 Deep Learning: Most of the Deep Learning researches such as Keras and Pytorch are implemented in
Python first.
 Model Integrating with other software: Models in Python can easily be integrated with other software and
can be deployed seamlessly because Python is general purpose language.
 Python has easy-to-read syntax. Code readability is one of the philosophies of Python language.
 Python emphasize on using idioms and write the code in a way called Pythonic way.
Areas in which R is better
 R is better in Statistical modeling research. This is because R is developed by Statisticians focusing
mainly on Statistics.
 Dashboarding is better in R. Shiny R has very nice visualization and dashboarding capabilities.
Ideas borrowed from each other
 plotline library for data visualization of Python is inspired by ggplot2 library of R.
 rvest library for web scarping in R is inspired by Beautifulsoup package of Python.
Python and r in data science
Python and r in data science

More Related Content

What's hot

2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning rNetaji Gandi
 
PhD Projects in Python With Source Code
PhD Projects in Python With Source CodePhD Projects in Python With Source Code
PhD Projects in Python With Source CodePhD Services
 
Lacey Liu SDE II Resume
Lacey Liu SDE II ResumeLacey Liu SDE II Resume
Lacey Liu SDE II ResumeLacey (Xi) Liu
 
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?Katy Slemon
 
pycon-2015-liza-daly
pycon-2015-liza-dalypycon-2015-liza-daly
pycon-2015-liza-dalyLiza Daly
 
Evgen Terpil "OCR in the Wild World of Social Media"
Evgen Terpil "OCR in the Wild World of Social Media"Evgen Terpil "OCR in the Wild World of Social Media"
Evgen Terpil "OCR in the Wild World of Social Media"Fwdays
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programmingVictor Ordu
 
The Python outside of your textbook
The Python outside of your textbookThe Python outside of your textbook
The Python outside of your textbookAniket Prabhu
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programminghemasri56
 
Python for Big Data Analytics
Python for Big Data AnalyticsPython for Big Data Analytics
Python for Big Data AnalyticsEdureka!
 
Scientific Programming in Python
Scientific Programming in PythonScientific Programming in Python
Scientific Programming in Pythonzukun
 

What's hot (16)

Erp
ErpErp
Erp
 
2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning r
 
PhD Projects in Python With Source Code
PhD Projects in Python With Source CodePhD Projects in Python With Source Code
PhD Projects in Python With Source Code
 
Lacey Liu SDE II Resume
Lacey Liu SDE II ResumeLacey Liu SDE II Resume
Lacey Liu SDE II Resume
 
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?
Python Vs. Go: Which One is an Outstanding Performer for Machine Learning?
 
ppt
pptppt
ppt
 
pycon-2015-liza-daly
pycon-2015-liza-dalypycon-2015-liza-daly
pycon-2015-liza-daly
 
Evgen Terpil "OCR in the Wild World of Social Media"
Evgen Terpil "OCR in the Wild World of Social Media"Evgen Terpil "OCR in the Wild World of Social Media"
Evgen Terpil "OCR in the Wild World of Social Media"
 
Python Online From EasyLearning Guru
Python Online From EasyLearning GuruPython Online From EasyLearning Guru
Python Online From EasyLearning Guru
 
Pycon 2011
Pycon 2011Pycon 2011
Pycon 2011
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
The Python outside of your textbook
The Python outside of your textbookThe Python outside of your textbook
The Python outside of your textbook
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 
Python for Big Data Analytics
Python for Big Data AnalyticsPython for Big Data Analytics
Python for Big Data Analytics
 
Python(1)
Python(1)Python(1)
Python(1)
 
Scientific Programming in Python
Scientific Programming in PythonScientific Programming in Python
Scientific Programming in Python
 

Similar to Python and r in data science

R Vs Python – The most trending debate of aspiring Data Scientists
R Vs Python – The most trending debate of aspiring Data ScientistsR Vs Python – The most trending debate of aspiring Data Scientists
R Vs Python – The most trending debate of aspiring Data Scientistsabhishekdf3
 
Download Python for R Users pdf for free
Download Python for R Users pdf for freeDownload Python for R Users pdf for free
Download Python for R Users pdf for freeAjay Ohri
 
Guide to Learn Python Programming.pdf
Guide to Learn Python Programming.pdfGuide to Learn Python Programming.pdf
Guide to Learn Python Programming.pdfNikhilSharma142682
 
Python – The Fastest Growing Programming Language
Python – The Fastest Growing Programming LanguagePython – The Fastest Growing Programming Language
Python – The Fastest Growing Programming LanguageIRJET Journal
 
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRY
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRYPYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRY
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRYijpla
 
Career in Python: Basic Skills & Opportunities
Career in Python: Basic Skills & Opportunities Career in Python: Basic Skills & Opportunities
Career in Python: Basic Skills & Opportunities Edology
 
What Is The Future of Data Science With Python?
What Is The Future of Data Science With Python?What Is The Future of Data Science With Python?
What Is The Future of Data Science With Python?SofiaCarter4
 
All you need to know about Python | BJIT
All you need to know about Python | BJITAll you need to know about Python | BJIT
All you need to know about Python | BJITBJIT Ltd
 
About Python Programming Language | Benefit of Python
About Python Programming Language | Benefit of PythonAbout Python Programming Language | Benefit of Python
About Python Programming Language | Benefit of PythonInformation Technology
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET Journal
 
PYTHON COURSE IN KHANNA
PYTHON COURSE IN KHANNAPYTHON COURSE IN KHANNA
PYTHON COURSE IN KHANNAtanukashyap18
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMindfire LLC
 
R programming advantages and disadvantages
R programming advantages and disadvantagesR programming advantages and disadvantages
R programming advantages and disadvantagesPrwaTech
 

Similar to Python and r in data science (20)

The Great Debate.pdf
The Great Debate.pdfThe Great Debate.pdf
The Great Debate.pdf
 
R Vs Python – The most trending debate of aspiring Data Scientists
R Vs Python – The most trending debate of aspiring Data ScientistsR Vs Python – The most trending debate of aspiring Data Scientists
R Vs Python – The most trending debate of aspiring Data Scientists
 
Chapter I.pptx
Chapter I.pptxChapter I.pptx
Chapter I.pptx
 
Download Python for R Users pdf for free
Download Python for R Users pdf for freeDownload Python for R Users pdf for free
Download Python for R Users pdf for free
 
Guide to Learn Python Programming.pdf
Guide to Learn Python Programming.pdfGuide to Learn Python Programming.pdf
Guide to Learn Python Programming.pdf
 
Python.docx
Python.docxPython.docx
Python.docx
 
Python – The Fastest Growing Programming Language
Python – The Fastest Growing Programming LanguagePython – The Fastest Growing Programming Language
Python – The Fastest Growing Programming Language
 
Reason To learn & use r
Reason To learn & use rReason To learn & use r
Reason To learn & use r
 
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRY
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRYPYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRY
PYTHON- AN APPETITE FOR THE SOFTWARE INDUSTRY
 
Career in Python: Basic Skills & Opportunities
Career in Python: Basic Skills & Opportunities Career in Python: Basic Skills & Opportunities
Career in Python: Basic Skills & Opportunities
 
What Is The Future of Data Science With Python?
What Is The Future of Data Science With Python?What Is The Future of Data Science With Python?
What Is The Future of Data Science With Python?
 
All you need to know about Python | BJIT
All you need to know about Python | BJITAll you need to know about Python | BJIT
All you need to know about Python | BJIT
 
About Python Programming Language | Benefit of Python
About Python Programming Language | Benefit of PythonAbout Python Programming Language | Benefit of Python
About Python Programming Language | Benefit of Python
 
UNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdfUNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdf
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming Language
 
PYTHON COURSE IN KHANNA
PYTHON COURSE IN KHANNAPYTHON COURSE IN KHANNA
PYTHON COURSE IN KHANNA
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
 
Python Mastery Made Easy.pdf
Python Mastery Made Easy.pdfPython Mastery Made Easy.pdf
Python Mastery Made Easy.pdf
 
summer t.pdf
summer t.pdfsummer t.pdf
summer t.pdf
 
R programming advantages and disadvantages
R programming advantages and disadvantagesR programming advantages and disadvantages
R programming advantages and disadvantages
 

Recently uploaded

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Recently uploaded (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

Python and r in data science

  • 1. Python vs and R in Data Science Ravi Ranjan Prasad Karn raviranjankarn@yahoo.com Data Scientist
  • 2. Python  Python is a high-level general purpose language.  It is developed by Computer programmers.  One of the mottos of Python language is code readability.  There is a way of writing Python program effectively. That is called Pythonic way of writing the program.
  • 3. R  R is primarily a programming language for statistical computing and graphics.  It is written by statisticians. The creators of R language are statistician who know more about computers than their peers and they are computer programmers who know more statistics than their peers.
  • 4. Difference between Python and R  Both Python and R have large software ecosystem and community for their use in Data Science. Both are vastly used as Data Science tools. But there are few areas where one has advantages over other.
  • 5. Area in which Python is better  Deep Learning: Most of the Deep Learning researches such as Keras and Pytorch are implemented in Python first.  Model Integrating with other software: Models in Python can easily be integrated with other software and can be deployed seamlessly because Python is general purpose language.  Python has easy-to-read syntax. Code readability is one of the philosophies of Python language.  Python emphasize on using idioms and write the code in a way called Pythonic way.
  • 6. Areas in which R is better  R is better in Statistical modeling research. This is because R is developed by Statisticians focusing mainly on Statistics.  Dashboarding is better in R. Shiny R has very nice visualization and dashboarding capabilities.
  • 7. Ideas borrowed from each other  plotline library for data visualization of Python is inspired by ggplot2 library of R.  rvest library for web scarping in R is inspired by Beautifulsoup package of Python.