How can R Users Learn Python for Data Science ?

How can R Users Learn Python for Data Science ?

Python is a supremely powerful and a multi-purpose programming language. It has grown phenomenally in the last few years. It is used for web development, game development, and now data analysis / machine learning. Data analysis and machine learning is a relatively new branch in python.

For a beginner in data science, learning python for data analysis can be really painful. Why ? You try Googling "learn python," and you'll get tons of tutorials only meant for learning python for web development. How can you find a way then ?

In this tutorial, we'll be exploring the basics of python for performing data manipulation tasks. Alongside, we'll also look how you do it in R. This parallel comparison will help you relate the set of tasks you do in R to how you do it in python! And in the end, we'll take up a data set and practice our newly acquired python skills.

Note: This article is best suited for people who have a basic knowledge of R language.

1. Why learn Python (even if you already know R)

No doubt, R is tremendously great at what it does. In fact, it was originally designed for doing statistical computing and manipulations. Its incredible community support allows a beginner to learn R quickly.

But, python is catching up fast. Established companies and startups have embraced python at a much larger scale compared to R.

According to indeed.com (from Jan 2016 to November 2016), the Number of job postings seeking "machine learning python" increased much faster (approx. 123%) than "machine learning in R" jobs. Do you know why ? It is because

2. Understanding Data Types and Structures in Python vs. R:

These programming languages understand the complexity of a data set based on its variables and data types. Yes! Let's say you have a data set with one million rows and 50 columns. How would these programming languages understand the data ?

Basically, both R and Python have pre-defined data types. The dependent and independent variables get classified among these data types. And, based on the data type, the interpreter allots memory for use. Python supports the following data types:

Numbers- It stores numeric values. These numeric values can be stored in 4 types: Integer, long, float, and complex. Let's understand them. Integer - It refers to whole numbers such as 10,13,91,102, etc. It is the same as R's  type. Long - It refers to long integers which are represented in octa and hexadecimal. In R, you use  package to read hexadecimal values. Float - It refers to decimal values such as 1.23, 9.89, etc. It is the same as R's type.

Share it:
Share it:

[Social9_Share class=”s9-widget-wrapper”]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You Might Be Interested In

How Artificial Intelligence is changing recruitment

5 Mar, 2021

Public Service Commission (PSC) put out a job advert for 151 job vacancies and received 12,639 applicants in a span …

Read more

Applying Machine Learning to Manufacturing

9 Feb, 2017

If manufacturers want to sustain and grow their customer bases in a competitive environment, their products need to fulfill increasingly …

Read more

9 Questions Data Center CEOs Must Ask about Revenue Generation

19 Aug, 2016

When a data center operator grows beyond 200 employees, there’s almost always a C-level executive responsible for revenue generation — …

Read more

Recent Jobs

IT Engineer

Washington D.C., DC, USA

1 May, 2024

Read More

Data Engineer

Washington D.C., DC, USA

1 May, 2024

Read More

Applications Developer

Washington D.C., DC, USA

1 May, 2024

Read More

D365 Business Analyst

South Bend, IN, USA

22 Apr, 2024

Read More

Do You Want to Share Your Story?

Bring your insights on Data, Visualization, Innovation or Business Agility to our community. Let them learn from your experience.

Get the 3 STEPS

To Drive Analytics Adoption
And manage change

3-steps-to-drive-analytics-adoption

Get Access to Event Discounts

Switch your 7wData account from Subscriber to Event Discount Member by clicking the button below and get access to event discounts. Learn & Grow together with us in a more profitable way!

Get Access to Event Discounts

Create a 7wData account and get access to event discounts. Learn & Grow together with us in a more profitable way!

Don't miss Out!

Stay in touch and receive in depth articles, guides, news & commentary of all things data.