Python Practicing Python and R at the same time

  • Thread starter Thread starter geologist
  • Start date Start date
  • Tags Tags
    Python Time
AI Thread Summary
The discussion centers on the simultaneous learning of Python and R for practical applications in environmental consulting. The individual has basic knowledge of Python and is focusing on R due to its immediate relevance to their job, particularly for statistical analysis of groundwater and soil data. While it's generally advised against learning both languages at once, the individual feels comfortable with the syntax and aims to dedicate around 15 hours a week to both. Python is highlighted for its automation capabilities and integration with GIS software, suggesting it may offer long-term productivity benefits. Ultimately, R is currently prioritized for immediate work needs, but Python's growing popularity and utility in data analysis are acknowledged.
geologist
Messages
19
Reaction score
1
Hello,

I've learned some of the basics of python through the sololearn Python 3 course (I also started the first week of the MIT Intro to computer science and programming on edx.org, but I found it beyond beginner level and decided to go through the sololearn Python 3 first).

My company (environmental consulting/environmental engineering) is interested in how R can be used for some of the basic statistics we perform (groundwater/soil analytical data). Since a co-worker already knew some R (used it in graduate research), I prioritized R since at this time it was more directly applicable to my job. I've gone through the data camp Intro and intermediate R tutorials.

I know it's not generally recommended to start learning both at the same time, but I'm already familiar with the syntax of both and I intend to learn both regardless (python mainly for open source GIS, e.g. GRASS & QGIS, and ArcGIS). Would it be counter productive to practice and continue building on both at the same time (~15 hours/week).
 
Technology news on Phys.org
It sounds like R is of immediate benefit to your company, so that part is answered. Python is a very powerful language that will allow you to automate many processes that would otherwise be very tedious. Its benefit on your job may not be immediate, but you may eventually be able to automate things at work that will greatly increase your productivity. If you enjoy scripting processes, you may want to learn Python anyway on your own time.

PS. I tend to believe that Python is a little over-sold and prefer Perl for scripting processes. But there are very good programmers (certainly better than me) who love Python.
 
Last edited:
Well obviously R is more important to you, however R is not having a large dynamic [compared to python] as can be seen in the table here: https://usersnap.com/blog/programming-languages-2018/
where python appears with a very strong increasing trend (according to PYPL ranking). The TIOBE ranking also shows an increasing trend for Python: https://www.tiobe.com/tiobe-index/ (compared to R), ranking 4th from 5th it was last year, overpassing C#. Python had an increase of about ~2.4% while R had a decrease of ~0.3%
Since we try to compare R with python, I guess your main target is big data analysis. Python has to offer extremely useful tools both for the data analysis and visualization. So in general I would definitely recommend python to R, given that this won't be bad for your current work [this should always be taken into account]. Afterall there is work for C++ programmers too :biggrin: not that many, but they exist. But I won't be too hard on C++, it has shown some great improvements in terms of usability since C++11.
 
  • Like
Likes geologist
FactChecker said:
It sounds like R is of immediate benefit to your company, so that part is answered. Python is a very powerful language that will allow you to automate many processes that would otherwise be very tedious. Its benefit on your job may not be immediate, but you may eventually be able to automate things at work that will greatly increase your productivity. If you enjoy scripting processes, you may want to learn Python anyway on your own time.

PS. I tend to believe that Python is a little over-sold and prefer Perl for scripting processes. But there are very good programmers (certainly better than me) who love Python.

Part of the reason for learning python is because GIS software (namely ArcGIS, QGIS, and GRASS GIS) utilize python for scripting. I'm focusing on R and python this year, but they won't necessarily be the only languages I learn.
 
Given the fact you work for a "dirt burning" company :wink: that potentially uses ArcGIS I'd start right there with python and the arcpy libs. With the ArcGIS support and examples available for python scripting, geospatial data analysis and visualization, in my opinion your path to developing competence in scripting to support your things like kriging and plume modeling would be a much easier learning curve with python utilizing the ArcGIS toolbox. Take up R later once you've mastered python.

Plus that other guy uses R, let him to the R and you can do the python. You will program loops around him with python and arcpy.
 
  • Like
Likes geologist
Kyle Gonterwitz said:
Given the fact you work for a "dirt burning" company :wink: that potentially uses ArcGIS I'd start right there with python and the arcpy libs. With the ArcGIS support and examples available for python scripting, geospatial data analysis and visualization, in my opinion your path to developing competence in scripting to support your things like kriging and plume modeling would be a much easier learning curve with python utilizing the ArcGIS toolbox. Take up R later once you've mastered python.

Plus that other guy uses R, let him to the R and you can do the python. You will program loops around him with python and arcpy.

My company deals with mainly with environmental contamination assessments (https://en.wikipedia.org/wiki/Environmental_consulting), I assume "dirt burning" implies petroleum?. I was actually learning python first, I only start learning R when I saw my co-worker using it for something, which in hindsight I probably should have got good at python first. We haven't had as heavy a use of GIS as would be expected for an environmental company, but that probably will change.
 
geologist said:
My company deals with mainly with environmental contamination assessments (https://en.wikipedia.org/wiki/Environmental_consulting), I assume "dirt burning" implies petroleum?. I was actually learning python first, I only start learning R when I saw my co-worker using it for something, which in hindsight I probably should have got good at python first. We haven't had as heavy a use of GIS as would be expected for an environmental company, but that probably will change.
When you need to work with others at a company, you may have to work in the language that they have done a lot with. There may be a great many R programs there. If so, you should be able to deal with it. R is very well respected and a well established statistical language.
 
Back
Top