26
13
u/RedditAcy Apr 25 '19
import pandas as pd
import numpy as np
my_dataFrame = pd.read_csv("example.csv")
fuckDataFrame = np.array(my_dataFrame)
# dab
0
10
u/Open_Abbreviations Apr 24 '19
I use php for data analysis
3
1
u/ChiliBoppers Apr 25 '19
You poor soul.
1
1
u/Open_Abbreviations Apr 27 '19
It’s not so bad after a while... you just need to learn to ignore the voices in your head...
9
7
11
u/TovarishchSputnik Apr 25 '19
Don't forget about R
1
u/-p-a-b-l-o- Apr 25 '19
It’s already forgotten.
Just kidding I don’t know but I always hear python is overtaking R for data analysis. I’m sure both are fine.
5
Apr 26 '19
If you have a cs background, you probably use python.
If you have a stats background, you probably use R.
Given this is a programmer subreddit, I’m guessing you code and probably hang around people with CS backgrounds moreso than stats or applied stats backgrounds.
4
0
Apr 25 '19
[deleted]
13
5
6
u/hennypennypoopoo Apr 25 '19
Python is fine, and R is too. If you're a programmer getting into data analysis, python will get you far, but it would definitely benefit you to learn R. They have different strengths.
-1
Apr 25 '19
While kinda hostile, the points made are actually accurate. R is in fact superior for data science and I’ve seen how ggplot2 makes beautiful graphs. And R is faster too, since it derives from C++, FORTRAN, and similar. Its syntax is horrid, but the features are worth it. R is the preferred language at universities teaching data science now.
1
Apr 25 '19 edited Apr 25 '19
[removed] — view removed comment
2
u/WallyMetropolis Apr 25 '19
Yeah, CRAN is pretty rich with packages. Pandas is a re-implementation of more or less native R functionality, so that's a particularly funny example. One place where R and R packages really continue to outpace Python is with timeseries analysis.
But R is also shitty as a general-purpose language. It'll typically be the case that something designed for a specific thing will be better at that specific thing than something designed to be general purpose, but it will be worse at everything else. As with anything, it's just a matter of trade offs and preferences. And the gap between what R supports and what Python supports is constantly getting smaller.0
Apr 25 '19
[deleted]
2
May 03 '19
Thank you for this. I didn’t want to take the time to address how many things were wrong with that opinion, but you wrote it up beautifully. I wouldn’t have been a good advocate for R because I’m (a) not someone who even knows R, and (b) not a data scientist either lol. I’ve just seen and appreciated the language enough to be knowledgeable of its capabilities and strengths.
I’ve talked to a number of recruiters who want people with a background in R though, so your point about what universities teach is quite relevant. :)
0
u/fr_1_1992 Apr 25 '19
Dude, I love R as it was the first language I learned wrt Data Science. But Python is a different beast altogether.
If someone asks me R or Python, I tell them this - "If you want to do some specifics things in a certain way, go for R. If you want to do many, many things in many, many different ways, go for Python."
0
2
1
1
1
u/LewsTherinTelamon Apr 25 '19
Is pandas really worth the hassle? I just use numpy arrays for everything.
1
Apr 25 '19
I can’t imagine learning pandas is more of a hassle than simply using numpy arrays if you are consistently doing data related work.
1
44
u/stanislav_harris Apr 24 '19
More layers! More layers!