Why Python Is Better Than R for Data Science

so the big question in data science python or r well here's why i use python instead of r for data science hey everyone welcome to the channel my name is leon i'm a data scientist based in the uk so i used to use our a lot during my undergraduate maths degree but then i decided to switch over and use python pretty much exclusively here are the timestamps and in this video i'm going to talk about my reasons for using python instead of r let's get right into it so python is a general purpose programming language which means you can use it to do a lot of different things you can use python for data science or web and game development or making web apps or even things like robotics whereas r is usually just for stats and analytics many companies use python for a lot of different things for example they might use it for their web development and they'll also use python for data science so in that kind of environment since everything's in the same language it's much easier to integrate everything together whereas if i was to use r i would pretty much only use it just for starts and analytics personally i think the flexibility to be able to do different things is incredibly important because it keeps me motivated to learn more python whereas if i was to use r i feel like i'd be so limited to stats and analysis that i'd get bored of it pretty quickly python is extremely easy to read so if you come from a non-coding background like me then you'll find it incredibly easy to learn compared to many other programming languages python is known as a high level language which means a lot of the details are actually abstracted and hence why it's so easy to read in contrast languages like r and c plus are considered low level languages which means that they're closer to machine language so even writing simple procedures can require a lot of code an interesting thing you might not have thought about is that during coding interviews since python's easy to write you can finish problems quicker and since it's easy to read interviewers can understand your solution easier as well so in this kind of environment using python might actually put you at an advantage compared to other languages python is now one of the most popular programming languages in the world like i said earlier python is a general purpose language and it's easy to read and learn so it's not really surprising that it's become less popular the main benefit of this popularity is that the python community is now extremely big so if you have any issues you're much more likely to come across somebody that can help you fix them for example for my first ever computer vision project that i did in python i reckon it was only possible because there was so much information online that i could fix almost anything as long as i searched long enough however i will say though that r has a much more specialized community of statisticians so if you're into statistics it might make more sense to stick with r instead of python but pretty much anything else though i would much rather go with python because the community is just so much bigger when it comes to deep learning most serious deep learning projects are done in python so if i want to take deep learning seriously it probably makes the most sense for me to use python instead of r libraries like tensorflow keras and python are written in or expressed in python and are very popular for deep learning projects because of this most of the deep learning community use python as their main language it was only later that these libraries became available in r so if i was an r user i would have had to wait a while until i could actually use them also since python is a general purpose language you might have a python based application in which case if you train a deep learning python based model it'd be much easier for you to deploy that into the python application because they're in the same language whereas if you had an ad based model it might be more difficult to do the same thing now there's actually a lot of things that i wish i'd do differently if i was to learn python again which i talked about in the video up here let me know in the comments down below if you prefer python or r you can also follow me on instagram and if you want to see more content like this please like and subscribe turn on the notification bell and i'll see you in the next one

Leave a Reply

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