Python Forum
Translation of R Code to Python for Statistical Learning Course
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translation of R Code to Python for Statistical Learning Course
#1
Hi everyone, I'm totally new to Python and am currently taking a course on Statistical Learning which utilizes the Introduction to Statistical Learning book by Gareth James. I've linked the book below, which includes the R Code for each individual lab used in the course. I wanted to know if there might be a convenient resource that would offer exact translations for the Lab code links here from R to Python, or possibly even a resource somewhere specifically for this book with the necessary Python translations.

http://faculty.marshall.usc.edu/gareth-j.../code.html

Ideally I would like to use these labs as an opportunity to learn Python more in depth and practice, rather than with R. Alternatively, I could simply do the labs in R, would this benefit me toward learning Python later on in any way?

Any help would be very much appreciated, your time means a lot. Thank you!
Reply
#2
You might take a look at :
"import r2python"

Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply
#3
I'd suggest just doing the labs in R, unless your course has given you a choice. If you've not done any programming before, then it'll make it easier. Of course, learning one language makes it easier to learn another down the line.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad I'm stuck with the reinforcement learning function in my Code OskiLori 2 1,567 May-20-2023, 10:01 PM
Last Post: OskiLori
  Translation AliceCu 2 660 May-16-2023, 09:05 PM
Last Post: deanhystad
  Translation API snippyro 0 1,257 Nov-02-2021, 01:09 AM
Last Post: snippyro
  [GoogleTrans] How can i print my translation word ?... JamieVanCadsand 7 11,718 Aug-29-2021, 12:01 PM
Last Post: Melcu54
  learning to code python nhan 5 2,538 May-23-2020, 03:35 PM
Last Post: nhan
  recording a translation table into a file arbiel 0 1,448 Mar-31-2020, 02:33 PM
Last Post: arbiel
  Manipulation a file for translation apsyrtos 1 2,027 Sep-10-2019, 02:56 AM
Last Post: luoheng
  Learning python, stuck on some code. stanceworksv8 2 3,479 Apr-02-2019, 01:51 AM
Last Post: stanceworksv8
  Powershell Session translation to Python; Session code seems to not work Maverick494 1 3,603 Jun-26-2018, 05:16 PM
Last Post: Maverick494
  Scilab -> Python translation silverfish 0 5,086 Mar-23-2018, 07:35 AM
Last Post: silverfish

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020