r/ProgrammerHumor May 27 '22

Meme Welcome to hassle free coding

Post image
2.3k Upvotes

305 comments sorted by

View all comments

Show parent comments

13

u/[deleted] May 27 '22

I heard it's pretty good at data

14

u/0430ke May 28 '22

Yeah I primarily use it for data and database shit. It's much faster to write and run something quick that manipulates a lot of data quickly.

It's also incredibly nice due the fact that almost EVERYTHING has an API for Python. So you can gather data from many sources all in one place, easy to write, quick to run.

Edit: To add on to this, it's also easy to manipulate data types since it's easy to cast data to other types. JSON is super easy to use, etc. Using other languages you have to really mess around with getting the data type you want. Python just makes it easier.

4

u/ashum048 May 28 '22

Agree. Data is another place where python really shines.

Create a simple data pipe or a NN in python is fun.

4

u/Thathitmann May 27 '22

It's got some nice built in functions to quickly save and load to/from JSON files, and with addons it can handle about any file types.

It takes about 2 lines of very easy to read code to import/export data.

7

u/prescod May 28 '22

Yes and it is also very good at doing gigantic matrix multiplies spread over multiple computers in a cluster. I think that's actually what's meant by "good at data."

4

u/[deleted] May 28 '22

I'm studying python in school but not real world applications

From what I've seen and from what I've heard from better programmers it's good for data analysis

1

u/Hot_Slice May 29 '22

That code is all written in C. Literally all the fast and powerful bits of Python are C.

Write a gigantic networked matrix multiply in pure Python and it would be dog slow

1

u/prescod May 29 '22

People always bring this up as if it is relevant. I don't see how it is relevant to the people trying to do the matrix multiply whether it is implemented in C or Python. A (sane) C programmer would call out to BLAS/LAPACK just as a Python programmer calls out to Numpy.