This is just a series of incredibly generic operations on an already cleaned dataset in csv format.  In reality, you probably need to retrieve and clean the dataset yourself from, say, a database, and you you may well need to do something non-standard with the data, which needs an external library with good documentation.  Python is better equipped in both regards.  Not to mention, if you&#x27;re building this into any sort of product rather than just exploring, R is a bad choice.  Disclaimer, I learned R before Python, and won&#x27;t go back.