r/datascience • • Aug 22 '19

Data Scientists on languages...

Post image
1.6k Upvotes

167 comments sorted by

38

u/[deleted] Aug 22 '19

74

u/[deleted] Aug 22 '19

SAS is going to be in a world of hurt once the old guard begin to retire en masse and the open source “kids” begin to join the c-suite. I’ve spoken to many high level folks at SAS in the recent months and while they drink the company kool-aid in public, they admit in private that the writing on the wall is pretty clear and are just cruising in autopilot until they retire.

32

u/flextrek_whipsnake Aug 22 '19

Yeah, the junior roles are already full of open source kids which has started to impact them. My organization paid them half a million a year which is ending permanently in a few months, largely because the front line devs all said "yeah we don't want this shit".

Their sales people (or at least the ones I interacted with) seemed pretty clear eyed about the situation. They desperately tried to push their new open source integration, but I struggled to figure out why I would ever want to call SAS procedures from within R.

20

u/Hellkyte Aug 22 '19

SAS has 2 exceptional products that are already doing some pretty solid market penetration in the new world.

The first is the JMP platform which is a lightweight tool that provides strong accessible stats to a lot of folks. Basically an improvement from Minitab in every way. Provides access to some extremely powerful techniques and is arguably the best DOE platform around. Not exactly "data science" but still very serious platform.

The second is the SAS Viya platform which I got to see demoed. Extremely well thought out data science platform.

People who who hate on SAS for being "old" forget that there is a reason why they are so old. There is a reason way their language is so weird (it's one of the oldest).

Great quote from Way of the Gun on this:

"You want to know the only thing you can assume about a broken down old man? It's that he's a survivor."

18

u/[deleted] Aug 23 '19

SAS’s biggest issue isn’t the quality of the product (personal opinions aside). Their biggest hurdle is industry perception (and obviously cost but I think that tends to be overplayed). SAS will have a foothold in certain industries for many years to come but new business is few and far between. Startups aren’t forking over cash for licensing, big tech would rather build from scratch, and Ive yet to see a new data science initiative at any of the multitudes of Fortune 500 companies I’ve worked with/for/talked to that wasn’t centered around open source, even in industries that are traditionally SAS strongholds like healthcare and banking. New grads simply don’t want to work in SAS shops and the younger tech crowd leading data science initiatives at large companies are typically coming from tech backgrounds where SAS has almost no presence.

7

u/coffeecoffeecoffeee MS | Data Scientist Aug 23 '19

Their industry perception is well deserved based on the fact that it doesn’t at all resemble other statistics software or other programming languages in use in 2019. Like, I want to write functions (not macros) and not have to do Rube Goldbergey things to work with data and models at the same time. Is it that much to ask for?

6

u/Hellkyte Aug 23 '19

I dont want to diminish your point because I think it really is valid. The tides are definitely changing. My company is now taking open source options seriously and that would have been laughed out of the room a decade ago. Python and R are much more seriously considered in big companies than they ever were before. And I definitely agree that the old way of SAS wouldnt survive.

But I also think it's wrong to diminish the secret sauce that SAS has. They may have one of the largest stables of serious academic statisticians of any developer out there. That is a real value. In more than one case I have seen them put out platforms that simply arent well known outside of their walls. More than that they have an exceptional enterprise level support infrastructure that helps roll their products out and develop talent. Not cheap of course, but for a big company this has a lot of value.

Admittedly most of my experience with them has been with JMP which is not really a "data science" tool (although there's another much larger discussion there. I just found out someone wrote an addin for doing UMAP in it. People underestimate JMP). I think the biggest challenge for them will be getting Viya locked into F500s and they have a much harder fight there against some of the Will Smith New Hotness platforms like Alterix.

I guess...do I think that the SAS language on it's own in a vacuum stands a chance in the future against Python and R? Probably not. But it's a mistake to think of SAS as just a language.

13

u/[deleted] Aug 23 '19

Like I mentioned, SAS’s biggest issue is not the quality of their product. And agree you can’t discount the “secret sauce”. But I offer two counterpoints to that. SAS is a behemoth and data science moves FAST. With open source I can take a paper, implement the algorithm from scratch, train it at scale and push to production before it even gets added to the to-do list at SAS. There’s also a not insignificant brain drain occurring at SAS. Younger talent is leaving in droves. A lot of it is career driven (middle management at SAS is bloated beyond belief) and there is a real sense of “get out and into open source while you still can”. SAS also pays terribly (less below market on the east coast, laughable compared to west coast). They used to get away with it due to the abundance of “soft” compensation (perks) but they really don’t offer anything that isn’t standard fair at most decently funded startups or moderately sized tech companies. SAS’s revenues have been flat for years which should have increased based on inflation alone indicates that price increases have mostly offset the loss of customers but those customers aren’t being replaced by new ones.

And no. I think SAS as a stand-alone language should be euthanized. I think SAS as a platform - connecting IoT/data ingestion with data warehousing with seamless blended infrastructure, automatic scaling, point and click push to production, etc. All the stuff that makes the SAS ecosystem attractive and then make it work with something like Python and it’s multitude of machine/deep learning frameworks (what I think Viya is ultimately aiming to be/do) would sell itself. Analytics is relatively easy. It’s that other stuff that’s really really hard to get right.

1

u/Hellkyte Aug 23 '19

This is a really great conversation and I'm getting a lot out of it. I hope I'm not coming across as intentionally combative, i just find this to be very interesting and want to dive deeper.

First off I was unaware of the systemic issues within the walls of SAS that you described. If that's true then that does not bode well for their future, regardless of any of our other points.

As for the need for speed, there's some nuance to that point that should be explored. In my experience I have seen 2 broad kinds of data science problems in large enterprises. The first is a rapid reaction to a unique one of a kind problem. I believe this is what you are describing.

However there are also many problems that are systemic, and require a more systemic solution. Systemic solutions at enterprise levels will never be "fast" as their adoption and shake downs will take years. They also rarely need the latest and greatest solution, and likely wont even want that due to concerns about unknown performance errors in the "new hotness".

To give two examples from my world. We had a situation where a unit was behaving poorly and needed to know why. This required a rapid solution as every day it went unsolved we were losing money.

In another instance we are trying to develop a very large multivariate process monitoring scheme. Whatever we end up choosing will take years to validate and put in place as the cost of being wrong would be extraordinary. Even the cost of implementation would be massive. This would not be a place for speed.

Enterprises themselves are large slow moving things. I've always felt that a combined philosophy of either agility and slow robust implementation allows for fit for use solutions.

To put it into the "big ship" metaphor, the enterprise is still a large ship that is difficult to steer, but it has access to smaller more agile vessels that allow it to capture opportunities. Like a big mothership swarming with little drones. Systemic solutions require you to shift the mothership direction, which is always slow, but opportunity solutions can be attacked by more agile vessels.

7

u/thenuge26 Aug 22 '19

As far as I can tell their cloud strategy is "what's the cloud lol?"

Looking forward to see how that works for them going forward...

10

u/[deleted] Aug 22 '19

I don't personally like SAS but to their credit they seem to be putting a lot of effort into Viya, much more than a "what's cloud" approach.

2

u/jamkgrif Aug 23 '19

What happened in around 2010 to cause a shift away from SaS?

13

u/[deleted] Aug 23 '19

SAS got abusive with the academic licensing costs in the early 2000’s and it look a few years for universities to update their curriculums to use open source. 2010 is when tides really started to change, so much so that SAS added R integration to SAS IML and began making SAS university edition (think locked down SAS docker image) available for free. But it was a bit too little too late. Once universities realized the cost savings and word spread there was no going back.

2

u/mdocvar Aug 23 '19

The same mistake which is being done by IBM and SAP too.

1

u/Hellkyte Aug 23 '19

An interesting survey. I would be curious of the effect of a longitudinally increasing self selection bias in it though.

248

u/willmachineloveus Aug 22 '19

SAS is bad and you should feel bad

60

u/i_use_3_seashells Aug 22 '19

I hate that I have to use it.

17

u/hip_hop_hendrix Aug 23 '19

this is my feeling rn :(

2

u/PavlovaEscobar Aug 23 '19

Can you use it to work out what the three seashells are for, it’s been a long time, I’m still wondering

67

u/profiler1984 Aug 22 '19

It's like paying for a Ford while the Lambo is free

23

u/mrazma Aug 23 '19

Moment of silence for the SAS user who drives a ford

-6

u/journeytobatman Aug 23 '19

This is such a misinformed opinion; it’s not even funny. I’m guessing you’re early in your career and therefore focused on the shiny tools. It’s never about the tool; it’s always about the user and the problem being solved. Use the best tool for knowledge you have and the problem you’re trying to solve (not everything is a nail that requires a hammer).

4

u/bythenumbers10 Aug 23 '19

"Right tool for the job" is an oft-abused adage, so I'd be very much interested in your explanation on the downsides of using a more powerful, freely-available tool over a closed-source COTS product that doesn't have the capabilities or performance. If the knowledge you have is outmoded, I'd say it's time for new knowledge and the tools to go with it. Since most cutting-edge research is done with open source tools, that'd be the place to go for new knowledge.

1

u/journeytobatman Aug 23 '19

And I would also ask you to test your assumption about performance and scalability of any COTS solutions. There are very large organizations using SAS (I’m a SAS and python programmer) for large datasets. And the reality is that an organization like SAS wouldn’t survive without a comparable offering to running large computation on Spark (their VIYA offering).

0

u/[deleted] Aug 25 '19

[deleted]

2

u/journeytobatman Aug 26 '19

!TrollAlert or !16yearoldAlert - not sure which one.

1

u/journeytobatman Aug 23 '19

There is a difference between getting outcomes and real world results and focusing exclusively on ‘what’s cool and cutting edge’. It’s a similar pet peeve of mine with regards to the AI hype out there. Everybody and their dog wants to get on the AI hype; and do cool stuff. While there are real world applications of automation and AI; most of the bleeding edge stuff is restricted to research right now. I appreciate the need for primary research and the value added through academics - however let’s be clear a lot of people on the bandwagon are neither researchers nor industry folks applying the concepts to achieve real world ROI. They are just on the hype train because humans have a tribal nature.

3

u/bythenumbers10 Aug 23 '19

So everyone touting the free, performant, open-source tools are just dazzled by the hype and aren't looking at things like (lack of ) licensing cost, performance, mindshare, or traceability of software behavior (which hits a stone wall when it comes to closed-source anything)? Or could some of these features I've mentioned factor into their carefully choosing provably superior open-source tools over blindly trusting closed-source commercial software packages that always lag best practices?

1

u/journeytobatman Aug 23 '19

That’s not what I said. There are organizations that choose to implement the entire data science cycle on their own. However for a vast majority COTS solution offer a better path forward. Kind of why Gardner’s 2019 D&A trends alluded to the fact that by 2022, they expect 75% of the production systems to use COTS that augment what OS can offer. I recognize that for some this might be the equivalent of a religious conversation; but really in the long term I would suggest organizations care about results not tools. And that will invariable be a mix of tools. OS and COTS. I need my team to solve a problem and in a reproducible way. Don’t care about the tool.

2

u/bythenumbers10 Aug 24 '19

Then I would suggest that the bio-organic tools in your organization choose code tools that don't cost unnecessary monies, and don't hide algorithmic choices/controls from the user, and if performance is identical (or likely better for open source), then the intelligent choice is open-source. Reproducible results require running the exact same code in the exact same way. Can't 100% verify that if you don't have access to the code, because closed-source can vary from machine to machine and version to version and not have to tell the user. Open source makes this verification nearly trivial, because there's nothing to hide in the name of "user convenience" or whatever excuse COTS is using these days.

1

u/journeytobatman Aug 26 '19

While I appreciate your perspective; I still think you are missing my point around the skill sets for dev ops and regulatory requirements. The reality is for many industries investing in dev op capabilities internally is not a good use for capital. Hiring for those capabilities is not how the firms make or spend money.

15

u/Eze-Wong Aug 22 '19

You are sassing SAS.

12

u/Angelsinger74 Aug 23 '19

I have to take it Spring semester. You’re not making it any better.

16

u/willmachineloveus Aug 23 '19

thoughts and prayers

79

u/MightbeWillSmith Aug 22 '19

Should I stop listing SAS on my resumes? Lol

92

u/DBA_HAH Aug 22 '19

SAS is like Oracle SQL. Not hip and trendy but entrenched market share in a lot of big corporations. It's a lot better than no experience and there will likely be companies using SAS for decades to come so nothing to really worry about.

20

u/FlukyS Aug 22 '19

Na I've still no reason to put Oracle on my CV. Fuck that shit, every relational database gets the same treatment from me. I'll use sqlalchemy and avoid the specifics. I've had a bit of exposure with Oracle SQL and I honestly don't bother to put it on my CV or talk about it ever.

24

u/fmarm Aug 22 '19

I seriously think about it. Last year I got hired by a consulting firm, when they made their offer they promised me I would work on R/Python projects. But when I arrived, surprise! A project (which is supposed to last for years) with only SAS! I resigned as soon as I found something else.

13

u/shaggorama MS | Data and Applied Scientist 2 | Software Aug 22 '19

I did, because I don't want to work anywhere where my SAS experience is exciting to a hiring manager. If you are seeking out work where you use SAS, keep it on there. I'm actively avoiding it, so no reason to draw attention to the fact that's it's a capability I have.

22

u/Hellkyte Aug 22 '19 edited Aug 23 '19

Depends a lot on the quality of the company you are interested in.

Ed: since a few folks seem salty about my response I'll clarify. There are going to be some folks you interview with that hear R, Python, and Tableau, and that's all they hear, because that's all they know. Because those are the names that show up in all the "data science" blogs. These are often not high quality jobs. These are the kinds of places that will hire you to make a dashboard.

Serious companies will value a more complex and complete set of responses. They'll see things like SAS, Mplus, and Matlab and that will differentiate you and they will value that.

SAS in particular implies to me a stronger stats background than Python, and maybe even R. Because no one in their right mind chooses to learn SAS in their free time, it's something you learn in a rigorous academic setting. I wouldnt actually expect them to use it in our workplace, but it would be an important indicator to me as to the quality of their education, which is extremely difficult to ferret out in the data science world.

11

u/hip_hop_hendrix Aug 23 '19

What if I had to learn SAS because of my job :-)

5

u/Hellkyte Aug 23 '19

Could be worse. I had to learn APL.

3

u/Trappist1 Aug 23 '19

That's even worse than having to learn Fortran lol

3

u/3atme Aug 23 '19

I’m an academic that has been searching for data science jobs that use Mplus, they don’t seem to exist. I get that R can do SEM/classification stuff, but Mplus does it so well.

3

u/Hellkyte Aug 23 '19

No, and I doubt anyone would hire someone for Mplus. But a good company/recruiter would recognize it and value it because what it says about the candidate.

1

u/Antscircus Aug 23 '19

There you have it. ~~ A GOOD recruiter. ~~

Never met one that really knows what is actually on my resume. They just recognize some of the words in my cv and if they see it on a job offer they believe you're the perfect match.... Lol

1

u/chogall Sep 01 '19

Good recruiter is an oxymoron

2

u/coffeecoffeecoffeee MS | Data Scientist Aug 23 '19

I did and it’s been for the best.

1

u/Namath96 Aug 23 '19

Sas might not be the cool new language but it’ll get you a job

1

u/HoberMallow90 Aug 23 '19

Companies/Teams that don't use SAS will judge you for it and it will hurt you. Companies/Teams that do use SAS, but are transititioning to R and/or Python will see you as someone to put on SAS projects while other team members get first dibs on R and/or Python. Companies/Teams that only use SAS will want you, but do you really want them?

1

u/bubbles212 Aug 23 '19

Companies/Teams that don't use SAS will judge you for it and it will hurt you.

This isn't true unless SAS is literally the only coding experience on your resume.

1

u/HoberMallow90 Aug 23 '19

Telling a hiring manager you have 1 year python, and 3 years SAS is better than just saying 1 year python. But both answers disqualify you for python or R data scientist jobs, especially for non-SAS companies. Unless it’s super entry level and you get in as an intern. Basically, SAS experience locks you into SAS roles and isn’t considered to be programming from an R / python perspective. If you are already locked in, put in in your resume and sell it, but gl getting hired by python and R teams that hate SAS. If you have 1 year SAS, 3 years python / R, then just leave it off and put 4 years and only tell them about it after the initial screening .

0

u/[deleted] Aug 22 '19

[deleted]

32

u/[deleted] Aug 22 '19

Or if you're applying for a job that might put you on SAS projects, yes.

29

u/[deleted] Aug 23 '19

In an interview I mentioned that I know "enough SQL to be dangerous" in part of an answer. After getting the job, this was interpreted as "put HorseFightingLeague on a huge database project because 'he speaks SQL'."

HorseFightlingLeague did not, in fact, speak SQL.

14

u/daguito81 Aug 23 '19

thats the problem of using colloquialisms in interviews. You think "Dagerous means i can fuck shit out and cause damage" the guy interviewing you might ve thought. "He's Dangerous as in he's so badass at it he'll "destroy"! every SQL project we put him on.

5

u/steaknsteak Aug 23 '19

Agreed, I think this is just a case where the interviewer doesn’t know what the idiom “knows enough to be dangerous” means

5

u/[deleted] Aug 23 '19

This is almost what happened to a t. They took the phrase of "enough to be dangerous" as a positive, not as a warning.

34

u/Tomik080 Aug 22 '19

Julia <3

0

u/[deleted] Aug 23 '19

[deleted]

6

u/Tomik080 Aug 23 '19 edited Aug 23 '19

? https://github.com/JuliaPy/Pandas.jl

So you can use pandas in Julia. However operations of set/get are slow so you should convert your pandas df to a julia df for max efficiency.

using Pandas

using DataFrames

x = Pandas.read_csv("myfile.csv")

df = DataFrames.DataFrame(x)

Operations on Pandas Dataframes are almost as fast as native pandas though, since the overhead of calling the Python API is nothing compared to the operations. (Just read the github!)

3

u/EarthGoddessDude Aug 23 '19

Why not skip Pandas and just use CSV.jl, either alone or in combination with DataFrames.jl?

I’m new to coding but I’ve read that Pandas “is a bloated mess” somewhere. Sure, it supposedly has a bazillion methods, but does one really need all that functionality? Does quantity equal quality? I’m sure for most users, the functionality provided by CSV and/or DataFrames is more than sufficient. Not to mention that there are other data libraries too: https://youtu.be/NOJbXnCVryM

1

u/Tomik080 Aug 23 '19

I was just giving an example since the guy I was replying to said Julia had no Pandas. And read_csv is for convenience, as is read_excel. No one imports csv on Python when using pandas

3

u/foxfyre2 Aug 23 '19

Julia can import and use R and python libraries.

2

u/EarthGoddessDude Aug 23 '19

DataFrames.jl, CSV.jl, Queryverse.jl...those are only some. They don’t meet your needs?

14

u/brjh1990 Aug 22 '19

This is correct. Look at SAS's face, like he's surprised he got jumped.

That said, I've gotten lucky in this position that I've had to use SAS on one project, when the other three I'm on use either R or Python exclusively.

10

u/[deleted] Aug 22 '19

SAS

Bruh

9

u/murrietta Aug 23 '19

A line from my resume: "R 4 years and SAS for 2 years. I favor R"

18

u/UnpunishedOpinion Aug 23 '19

I have been working with both SAS and python for the past couple of years in the financal industry. Each has its benefits.

  1. Large datasets, talking about billions for records and SAS will never through a Memory error. Python will. This is due to how to how data processing is handled in Python (uses alot of RAM unlike SAS).

  2. Python versions can be a qwerk at times 2.7 vs 3.6. a model estimated on 2.7 might not work when loaded in 3.6. This is the downside of open source softwares. Who will ensure we have the same algorithm version available 5 years from now? SAS logistic has been around for a very long time. Imagine explaining this to the regulators

  3. SAS viyva is utilizing sklearn in the background. So its a good attempt to modernize but i think they overdid it. Cost and ease and usage can be better. My guess is they will add keras and tensorflow linkage in the near future

  4. Python allows you to experience object oriented programming as well which opens plenty of non-stats related opportunities.

  5. on an individual level, it is better to be comfortable with both. These are good skills to have on your resume and should serve you well in the longer run

6

u/[deleted] Aug 22 '19

This makes feel good after a day jumping back and forth between python and SAS because I cannot use sql.

1

u/Urthor Aug 28 '19

???? I'm sorry what

1

u/[deleted] Aug 29 '19

I dont have a connection to sqlserver

2

u/Urthor Aug 29 '19

Oh Okay, read like you didn't know how to write a query for a second

1

u/[deleted] Aug 29 '19

:)

5

u/VenkatSureddi7 Aug 22 '19

Do you think banks will move away from SAS to open sources ?

3

u/random_user_fp Aug 23 '19

Yes I believe so. Some bigger banks have switched a majority of their stuff from SAS to Python or R. Mid sized banks typically will now allow you to build models in open source rather than dictating it has to be in SAS. I believe there has been guidance from federal regulators (in one of their SR letters) that says using open source is ok. So I think it is a matter of time before they move to open source. One other thing to consider-with more banks developing their mobile apps and payment apps like Zelle, Venmo, etc., they will want to switch to open source for better compatibility.

2

u/daguito81 Aug 24 '19

I had a class with the CDO of Santander Group, she's 100% Open Source all the things. And all her analytics and models are done using open source. Sure it's a process in a bank of that size. But it's not outside the realm of possibility

31

u/mrregmonkey Aug 22 '19

The best DS is SPSS because it's drop downs ensure maximum scalability.

8

u/WB_Onreddit Aug 22 '19

I use SPSS for some large datasets. It works for me but gets no love. I think it will die soon.

2

u/NerdRep Aug 23 '19

Have you ever heard of or taken a look at Jamovi? Seemed like a cool project when I checked it out, but I'd like to know what someone who uses SPSS thinks (I've never touched SPSS).

2

u/WB_Onreddit Aug 23 '19

Jamovi?

Wow. It looks slick. I'd not heard of it. When I get some free time I will check it out.

Thanks

2

u/Yojihito Aug 24 '19

I really like SPSS, it was featured and therefore used in Most Bachelor thesis (and Master thesis because for standard statistic stuff it just works + easy DSL).

Used by ~99% of students because they can't program a for loop for their life - but they also don't have to outside of 1-2 courses.

No idea about business usage though, I'm learning R right now, then pandas.

1

u/king_curry Aug 23 '19

SPSS will be rolled into the Watson Studio suite, so it's not going away for a long time

Source: I work with/for SPSS stuff

1

u/WB_Onreddit Aug 23 '19

Well that is good. My v22 is working well and meets my needs. I hope that I won't need to upgrade for a while. I am migrating to Python.

2

u/[deleted] Aug 23 '19

What’s a ‘drop down’ and how does it ensure scalability? Does it mean that SPSS can handle large datasets without requiring absurd amounts of RAM or GPU?

2

u/mrregmonkey Aug 23 '19

Drop downs, like "file, save as", under the file drop down.

It is the most scalable in that it requires the least programming knowledge and fastest dev time.

1

u/[deleted] Aug 24 '19

Except when you need to make a change to one graph or step in the process that needs to flow through or you need to remember what exactly you clicked to repeat an analysis.

1

u/Yojihito Aug 24 '19

If you have a large data set I can test it for you.

10

u/lead999x Aug 23 '19

I just love watching grown ass computer scientists argue over which snail speed wrapper language they like to call the exact same underlying C and Fortran libraries from.

3

u/Optrode Aug 23 '19

What... what if I said MatLab?

3

u/[deleted] Aug 23 '19

Tribalism at its finest. We don't have any real skill so let's focus on the tools others use.

2

u/stacm614 Aug 23 '19

Can confirm. Very accurate.

2

u/[deleted] Aug 23 '19

What’s wrong with SAS? Why don’t people like it?

2

u/bubbles212 Aug 23 '19

It’s closed source with licensing fees and an ancient syntax. That said, people have used it for rock solid production-level data analysis pipelines that can be and have been maintained for decades (particularly in the heavily-regulated fields of banking and healthcare).

2

u/Gungator Aug 23 '19

They’re just beating him because he’s ginger.

2

u/umargan Aug 23 '19

Yeah kill him

4

u/RPGProgrammer Aug 22 '19

Julia?

6

u/Tomik080 Aug 22 '19

I started reading on Julia. It looks realllyyyyyyy good. You can even write python directly in your notebooks with a simple @ macro. It's crazy. And Tensorflow.jl wrapper is arguably better than Python's Tensorflow.

And the native matrix typing/operations makes it so fast. I'm definetely learning it in the next few months

2

u/EarthGoddessDude Aug 23 '19

Have you used Flux? I’m not an ML guy, just read stuff and curious.

2

u/Tomik080 Aug 23 '19

I haven't. I have litterally just started looking at the language as a whole. Some people prefer Flux to any Python's ML library though, so I will definetely give it a look

2

u/HalcyonAlps Aug 22 '19

My biggest pet peeve is the 1 indexing though. That introduces so many bugs when porting from any other language, well except from R.

5

u/Tomik080 Aug 22 '19

Me too, I don't mind the 1-indexing with native Julia at all. I mind it when I have to call python and everything get mixed up though, you're right

1

u/N4NONSENSE Aug 22 '19

Is there a big difference in runtime if you were to use python compared to C++?

13

u/WindowsDOS Aug 22 '19

C++ runs faster. Python develops faster.
As the saying goes "Months of programming can save you minutes of runtime"

6

u/[deleted] Aug 22 '19

And a ton of python's libraries use C under the covers.

3

u/Yojihito Aug 22 '19 edited Aug 24 '19

Python is a glue language with C/C++ in the underlying libs 90% of the time.

1

u/[deleted] Aug 22 '19

Yes c++ might run faster on a single machine but if you want to improve your runtime you most likely have to try a distributed computing approach. So python API of spark on a powerful cluster is no match for c++ on a single machine.

3

u/[deleted] Aug 22 '19

Sas eg process flows are a nice shell for scheduled SQL jobs

4

u/[deleted] Aug 22 '19

As much as I love Python and R, SAS is a must for fields like clinical trials.

6

u/[deleted] Aug 22 '19

I'll be honest, I love R, but designing experiments feels so much faster in SAS. It's probably my idiot brain

6

u/Feminintendo Aug 22 '19

Just use “from brain import experiment_design”.

3

u/Trappist1 Aug 23 '19

He said R, not Python. He needs to use...

"library(brain)

brain:: experiment_design()"

2

u/bubbles212 Aug 23 '19

You forgot

#install.packages("brain")

commented out in the scheduled production script.

1

u/Trappist1 Aug 23 '19

I was debating to include that or not, but since the Python pip was not included in the other comment, I decided against it.

1

u/MyDictainabox Aug 25 '19

I only need to explicitly call brain:: if library(penis) is active.

5

u/dcstang Aug 22 '19

Is that because it is traditionally used in that setting or does SAS offer something that R or Python cannot do for clinical data?

2

u/[deleted] Aug 22 '19

I would say it is mostly due to tradition. We even base our data collection, tabulation and analysis standards on SAS file formats.

Even if SAS, doesn’t offer anything better, accumulated knowledge in the field is an important thing to consider as well.

On a totally different point, if data is big enough probably we will need another language and technology since python and R on regular machines can’t deal with it.

All in all, I avoid favourite language discussions even if I have my favourites. :))

3

u/Feminintendo Aug 22 '19

Are there not Python/R libraries that can read SAS data files? I’m not familiar with SAS, but that surprises me.

6

u/theottozone Aug 23 '19

Library called sas7bdat in R for reading in SAS files.

4

u/RealExabytE Aug 23 '19

haven from tidyverse

2

u/[deleted] Aug 23 '19

Not for R that I know of. There are bunch to read for python but nothing for write back to SAS as long as you pay big bucks.

4

u/flextrek_whipsnake Aug 22 '19 edited Aug 22 '19

Even that is slowly changing. I work at a hospital and we're ditching SAS entirely this year. The federal government, a big driver of SAS in the healthcare space, is starting to move toward R, or at least begin supporting it in some circumstances.

It will be a while before SAS totally dies in healthcare, but it is dying there too. It will survive only where it's required by a federal regulation or something like that.

https://wwwn.cdc.gov/nchs/nhanes/tutorials/samplecode.aspx

That page used to be SAS-only a few years back. Now they have R code using Lumley's survey package.

17

u/datacubist Aug 22 '19

R and python can run linreg too... When you say “must” you mean that academia is slow to move which isn’t exactly the definition of must.

13

u/[deleted] Aug 22 '19

Ok let me clarify, most of the clinical study results are persisted in SAS file formats. A data scientist who wants to let’s say cure cancer must at least know how to deal with SAS files. Most probably this scientist has to prototype with r and python. However, if they deal with big data they have to use distributed technologies such as spark.

I guess I’m hinting at none of those techs are obsolete yet and might be useful in different contexts.

3

u/metriczulu Aug 23 '19

Sorry if I'm missing something here, but what is the issue with using Spark instead of SAS?

1

u/[deleted] Aug 23 '19

Oh I wasn’t saying we should use something instead of something else really. I was trying to emphasize each tech might be useful in a different scenario.

If I have to list some drawbacks of spark...

Spark requires distributed computing knowledge and a lot of hardware/software maintenance (or money if you will use cloud) . It is not as easy as using numpy since it requires some knowledge of cluster hardware and topology. This kind of effort might be overkill for prototyping.

I strongly suggest people to try python notebooks that run on spark tough. Databricks is a great vendor. You can sign up for free and see what spark can do without any devops burden.

However, if you want to go to production, most of the times a cloud cluster is not customizable enough for your needs. Moreover customer might not be comfortable sending data on cloud. Thus 90 percent of the time you build and configure your own cluster with related Hadoop technologies.

Long story short, spark is awesome use it. Way better than sas really. However know that going to production will take some effort.

7

u/backgammon_no Aug 22 '19 edited Mar 11 '25

vanish paltry makeshift wipe hat air attractive uppity close depend

This post was mass deleted and anonymized with Redact

5

u/SemaphoreBingo Aug 22 '19

How can you get a cancer cure w/o clinical trials?

5

u/backgammon_no Aug 23 '19

The trial itself is just the tip of the work pyramid. First we have to understand the biology and this is a much bigger undertaking

2

u/1337HxC Aug 22 '19

His point is that there are several steps to curing cancer. Clinical trials are needed, yes. However, basic science is needed before the clinical trial, and no one in the basic science side uses anything other than Python, R, command line, and maybe Matlab.

I'm only familiar with the basic/translational side of things, so I can't speak to the clinical trial data management. But ain't no one doing genomics/epigenetics/bioinformatics in general using SAS or SPSS.

4

u/SynbiosVyse Aug 22 '19

The datasets from UNOS are all SAS, dating back several decades. You can load them in Python but it's an extra layer of work.

4

u/[deleted] Aug 22 '19

Oh maybe is it a standard for my country only? Where are you from? All of the input for our pipelines are sas files.

And we have to submit our results in sas file formats as well.

1

u/[deleted] Aug 22 '19 edited Mar 11 '25

[removed] — view removed comment

5

u/[deleted] Aug 22 '19

So I guess you guys never heard of this https://www.cdisc.org ?

By the way I’m more of a scala and big data guy. I have no idea how I put myself in a position to defend sas. 😑

3

u/Zawadscki Aug 22 '19

I've seen RCT results, EHRs, and claims data all in SAS format. I get the sense this is only due to an antiquated infrastructure of sharing data rather than a requirement for clinical research.

0

u/[deleted] Aug 22 '19

It is all because of this guys https://www.cdisc.org

2

u/aprominax1 Aug 22 '19

As a data scientist who works on curing cancer, I have to admit that we never use SAS. I’m more of a python person, but many of my colleagues use SPSS though.

0

u/[deleted] Aug 22 '19

Could someone not just create a python package that reads in SAS files and puts out usable python objects?

2

u/[deleted] Aug 23 '19

There are some python packages to read from sas. But usually you risk losing accuracy and some metadata due to weird format of SAS. Nothing for writing back to SAS format as long as you pay tons.

0

u/[deleted] Aug 23 '19

[deleted]

6

u/datana3 Aug 23 '19

This was exactly my experience. It's not academia that is slow to move- they are the ones who like open source because they don't have to pay for licensing. It's the hospitals and clinical trials people that want someone to blame if things go wrong.

1

u/Yojihito Aug 24 '19

Buying a vouched tool/platform with a scapegoat included is a big deal for many companies.

Nobody got fired for buying IBM

doesn't come from nothing.

2

u/AptSeagull Aug 23 '19

This probably explains eroom's law. https://wikipedia.org/wiki/Eroom%27s_law

1

u/EarthGoddessDude Aug 23 '19

Just curious, have you heard of this: https://pumas.ai/

This is the work of one of the developers that hangs out on /r/Julia.

1

u/[deleted] Aug 23 '19

Thanks, never heard of it. It looks interesting I will read about it.

2

u/GuardiansBeer Aug 22 '19

What R/Python functionality can be used for dataset handling and merging across systems?

I grew up on SAS but want to move to Python/R (and the company supports the transition because $). Most use cases for SAS are not statistical but just data handling across systems. Creating new views/etc is impossible to get tech to prioritize or business to fund, so analytics teams are always creating large (~20M row, ~100 column) datasets to look at specific parts of the business differently. SAS handles this nicely with their dataset (*.sas7bdat) functionality.

What is an equivilent way to create long term datasets via python/R? Must they reside on a sql server/specialized server, or can the files sit in a simple network path with other files?

thanks.

8

u/Tarqon Aug 22 '19

This is trivial. Persisting data as files on HDFS has been a thing for years. Look into parquet if you'd like to know more.

1

u/GuardiansBeer Aug 22 '19

I'm ignorant, so forgive the question, a quick google says that these both are in regards to hadoop file systems, which doesn't seem to fit within the need to save files to a windows network path. I haven't done the enough reading here in last 10 minutes, but if my python install is local to the pc, can i still use this utility and file format?

4

u/Tarqon Aug 23 '19

Parquet will work fine on a regular networked drive, it's just that once you reach a certain scale you might want the duplication that hdfs provides.

-1

u/timThompson Aug 23 '19

parquets work fine as the file format on s3 or hdfs.

3

u/[deleted] Aug 22 '19

Both R and Python have functionality to save off data sets in a similar functionality to .sas7bdat. However, neither offer a similar managed environment option similar to SAS libraries. Their files simply live in a physical location that you can reference in your code.

2

u/baluwalip Aug 23 '19

SAS User here. It has it's place.

I agree it's nowhere near as intuitive to use as say python or R but it's still incredibly versatile inside the environment its given. There's not a whole lot of tasks I can say hand-on-heart that SAS coding/products can't achieve with a bit of know-how.

It's also a language it can be good to know when you work in an older organisation wary of open source languages like the above.

1

u/AptSeagull Aug 23 '19

Karma for Goodnight and the rest, can't wait until they're but a distant memory

1

u/[deleted] Aug 23 '19

Lol

1

u/HonestVisual Aug 23 '19

SAS guy should be 100

1

u/beire_ Aug 22 '19

do not underestimate, but I prefer Python

1

u/3atme Aug 23 '19

I’m a long time SAS user who has used R for some dynamic social network stuff. Did a Udemy course on basic R skills this summer.

In terms of data cleaning, SAS seems way more intuitive and efficient than R. Other than my bias of experience, what am I missing???

12

u/coffeecoffeecoffeee MS | Data Scientist Aug 23 '19

dplyr

9

u/Trappist1 Aug 23 '19

This times x1000. Maybe data.table too. Let's just say the tidyverse in general.

2

u/3atme Aug 23 '19

I have the R for Data Science book on order, this is likely the cure for my hangup.

0

u/chimelime Aug 23 '19

Is this the Xbox vs PS4 vs PC convo? Who cares, use what works for you and makes you successful, also you can just learn all 3? I know crazy thought.

0

u/[deleted] Aug 22 '19

[deleted]

3

u/iheartrms Aug 23 '19

Python can be used in a totally procedural/imperative way if that's what you are into.

0

u/[deleted] Aug 22 '19

[deleted]

9

u/[deleted] Aug 22 '19

That’s...ridiculous.

6

u/metriczulu Aug 23 '19

He's right, it's a letter /s

2

u/Trappist1 Aug 23 '19

So what do we choose when we have a letter, a poisonous reptile, and a trait of moody teenagers?

2

u/fco8 Aug 23 '19

Puts on pedantic hat Actually, pythons are not poisonous.

38

u/[deleted] Aug 22 '19 edited Apr 21 '26

[removed] — view removed comment

16

u/jamkgrif Aug 23 '19

Exactly, see how many users with over 20 years of experience there are with SaS compared to R and Python? These users built a program for the government and it has worked for 20+ years. The government isn't going to change something that works to keep up with the latest trends. It will only change when they have to

0

u/[deleted] Aug 22 '19

[deleted]

7

u/8fingerlouie Aug 23 '19

Or people who doesn’t have the time to discuss how they arrived at a given result.

If people ask what software did you use, and you reply “Python”, there are a ton of questions about which libraries/methods/whatever you used.

If you reply SAS they just go “Oh ok, cool”. Done.

SAS is proven and certified, Python and R is not. This means a lot for validity of results.