Skip to Content
Python and R for the Modern Data Scientist
book

Python and R for the Modern Data Scientist

by Rick J. Scavetta, Boyan Angelov
June 2021
Beginner to intermediate
196 pages
5h 1m
English
O'Reilly Media, Inc.
Content preview from Python and R for the Modern Data Scientist

Part II. Bilingualism I: Learning a New Language

In this part, I’ll introduce the two core languages for data science: Python and R. In contrast to other introductions, I expect some familiarity in one language before introducing the other. In short, I expect that you’re carrying baggage. I’d like to advise you to leave your baggage at the door, but baggage is designed to be hauled around, so that’s kind of hard to do. Instead, let’s embrace your baggage! Recognize that Python and R operate quite differently and you may not always find a 1:1 translation. That’s OK!

When I teach R and Python for complete beginners, each lesson is an element, a fundamental component of the whole. The first four elements are:

Functions

How to perform actions, i.e., the verbs.

Objects

How to store information, i.e., the nouns.

Logical Expressions

How to ask questions.

Indexing

How to find information.

There are many layers beyond these four elements, but these are the core, essential ones. Once you have a good grasp of these elements, you have the tools to delve further on your own. My goal is to get you to that point. Thus, the following chapters are not thorough introductions to each language.

The Appendix contains a quick-reference Python:R bilingual dictionary. It will help you translate code you’re familiar with into your new, still unfamiliar language.

Chapter 2

Begin here if you’re a Pythonista who wants to get into the uerR’s mindset.

Chapter 3

Begin here if you’re a useR who ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Practical Machine Learning in R

Practical Machine Learning in R

Fred Nwanganga, Mike Chapple
ggplot2 Essentials

ggplot2 Essentials

Donato Teutonico

Publisher Resources

ISBN: 9781492093398Errata Page