{"id":35946,"date":"2021-01-19T18:38:03","date_gmt":"2021-01-19T17:38:03","guid":{"rendered":"https:\/\/multi.liora.io\/?p=35946"},"modified":"2026-02-06T09:09:14","modified_gmt":"2026-02-06T08:09:14","slug":"python-or-r-which-to-choose","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/python-or-r-which-to-choose","title":{"rendered":"Python or R: Two different languages for different uses"},"content":{"rendered":"<h3>What are the advantages and disadvantages ?<\/h3>\nFirst of all, there is no programming language better than another one. However, the fact that <b>Python is more widely used<\/b> in academia and therefore <b>predominant later in industry<\/b> is a considerable advantage if you want to train yourself in <a href=\"https:\/\/liora.io\/en\/wp-admin\/post.php?post=35738&amp;action=edit\"><strong>Data Science<\/strong><\/a> and <a href=\"https:\/\/liora.io\/en\/machine-learning-what-is-it-and-why-does-it-change-the-world\"><strong>Machine Learning<\/strong><\/a>.\n\nDepending on the field you work in, there are real differences between<strong><a href=\"https:\/\/liora.io\/en\/python-the-most-popular-programming-language\"> Python<\/a><\/strong> and R.\n\nLets see the different points that you need to know in order to choose the programming language which fits with your needs:\n<ul>\n \t<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Machine Learning<\/b>: It consists of two main steps: the model design and the prediction phase. The first one is <b>done upstream by quite heavy calculations<\/b> while the <b>predictions are made in real time<\/b>. Nevertheless, the choice of Python or R for each of these steps does not influence a user\u2019s execution time.<\/li>\n<\/ul>\n<ul>\n \t<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Libraries<\/b>: Both languages have a multitude of libraries adapted to Machine Learning. More than 5000 libraries are available in R in a wide variety of domains. <b>Python has fewer but some are almost exhaustive<\/b> such as Pandas, NumPy, Scikit Learn, SciPy or Matplotlib.&nbsp;<\/li>\n<\/ul>\n<ul>\n \t<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Development<\/b>:&nbsp; Many people find <b>Python quite easy to learn<\/b>, as High-Level type it is closer to the human language, while <b>R requires more effort to learn<\/b> because of its rather unclear syntax. However, they both have good development environments such as <strong><a href=\"\/\">Spyder<\/a><\/strong> for Python or <a href=\"\/\"><strong>Rstudio<\/strong><\/a> for R.<\/li>\n<\/ul>\n<ul>\n \t<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Speed<\/b>: Initially, R and Python are two relatively slow languages. The emphasis on ease of programming in <b>Python makes this language necessarily slower<\/b> than low-level languages like R. In addition, <b>R has recently updated its computationally intensive operating systems<\/b> making it much faster. To make up for this delay, some Python libraries interface with the C language.<\/li>\n<\/ul>\n<ul>\n \t<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Visualization<\/b>: In Data Science, <b>data visualization<\/b> is essential in order to analyze the results, so it is an important factor in choosing your language. Python is not to be complained about in this domain but the <b><i>R ggplot2 package<\/i><\/b> gives a big advantage over <b>Python and its Matplotlib package <\/b>for its diversity and ease of use.&nbsp;<\/li>\n<\/ul>\nDespite these pros and cons, the Liora training prefers Python for its ease of learning and its predominance in the professional world.\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"https:\/\/liora.io\/en\/processus-inscription-certifications\">DiscoverLiora&#8217;s courses<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>What are the advantages and disadvantages ? First of all, there is no programming language better than another one. However, the fact that Python is more widely used in academia and therefore predominant later in industry is a considerable advantage if you want to train yourself in Data Science and Machine Learning. Depending on the [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":2030,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-35946","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/35946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=35946"}],"version-history":[{"count":1,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/35946\/revisions"}],"predecessor-version":[{"id":206479,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/35946\/revisions\/206479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/2030"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=35946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=35946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}