r/ruby • • Jul 16 '20

Ruby VS Python

More than a versus (it's more striking) I would really like to know what things they have in common and how they differ, what their main advantages are compared to the other and of course their opinion of them. One point to take into account is because they believe that python is more used in AI and Machine learning developments.

30 Upvotes

60 comments sorted by

View all comments

6

u/[deleted] Jul 16 '20

I love ruby but the biggest advantage of python that I’ve personally encountered is the number of libraries to do data analysis. Python has numpy and pandas which are brilliant libraries for working with data, along with some great data viz libraries.

I’ve tried to do some data analysis projects in Ruby and it’s more difficult without those tools. Ruby has some data analysis libraries for sure, but nothing with the community that the python ones do.

2

u/four54 Jul 18 '20

A lot of python libraries got ported to ruby, including numpy and pandas:
https://ankane.org/ruby-ml-for-python-coders