| ▲ | dmurray 15 hours ago | |||||||
That's not why it's used in data science though. Lots of data scientists use Python all day and have no concept of ever working in a different field. It's used in data science because it's used in data science. | ||||||||
| ▲ | vkazanov 15 hours ago | parent | next [-] | |||||||
It's used in data science because no other language has this level of library support. And it got this unprecedented level of support because right from the start it made its focus clear syntax and (perceived) simplicity. There is also a sort of cumulative effect from being nice for algorithmic work. Guido's long-term strategy won over numerous other strong candidates for this role. | ||||||||
| ||||||||
| ▲ | mohaine 15 hours ago | parent | prev | next [-] | |||||||
But data science usually isn't an island. Use whatever you want on your one off personal projects but use something more non-data science friendly if you ever want your model to run directly in a production workflow. Productionizing R models is quite painful. The normal way is to just rewrite it not in R. | ||||||||
| ||||||||
| ▲ | bsder 8 hours ago | parent | prev | next [-] | |||||||
Partially, but it's also because 90% of your work in "data science" isn't direct analysis. You need to get the data from somewhere. Do you need to scrape that because Python is okay at scraping? Oh, after its scraped, we looked at it and it's in ObtuseBinaryFormat0.0.LOL.Beta and, what do you know, somebody wrote a converter for that for Python. And we need to clean all the broken entries out of that and Python is decent at that. etc. The trick is that while Python may or may not be anybody's first choice for a particular task, Python is an okay second or third choice for most tasks. So, you can learn Python. Or you learn <best language> and <something else>. And if <something else> is Python, was <best language> sufficiently better than Python to be worth spending the time learning? | ||||||||
| ▲ | lenerdenator 15 hours ago | parent | prev [-] | |||||||
That's probably true now, but at one point, they were looking for people to start doing data science, and were pulling people from other domains. | ||||||||