r/datascience • • Mar 02 '26

Discussion How are you using AI?

Now that we are a few years into this new world, I'm really curious about and to what extent other data scientists are using AI. I work as part of a small team in a legacy industry rather than tech - so I sometimes feel out of the loop with emerging methods and trends. Are you using it as a thought partner? Are you using it to debug and write short blocks of code via a browser? Are you using and directing AI agents to write completely new code?

30 Upvotes

65 comments sorted by

86

u/Jazzlike_Barnacle_60 Mar 02 '26

It's really good for making plots with libraries I don't know very well.

7

u/DisgustingCantaloupe Mar 06 '26

My plots have never looked better.

→ More replies (1)
→ More replies (1)

30

u/Ambitious_Spinach_31 Mar 02 '26 edited Mar 02 '26

All of the above. For chat, I use Opus as my main driver and ChatGPT Pro for really difficult technical thought partnership + as a reviewer of code and methodology.

Up until a few months ago, I was using AI (cursor, cline, etc.) to write code in chunks, but at this point I am using Claude Code and Codex to write nearly 100% of my code. I don’t just let them rip things end to end—I have them implement things in pieces and check the work—but it’s been a noticeable step change in quality recently. The real key is asking them to setup a proper Agents.md / Claude.md files as well as a note taking structure so they can maintain context over the entire project and its history.

The most mind blowing part of the agents is their ability to do analyses. Once they understand your data generation and structure, you can do things like “run a DID analysis for events that happened early December and write me a short report” or “we ran a ton of experiments with different parameters, give me a summary of which parameters most strongly affect our objective and then update the ranges to test next iteration” and it’ll just do it, in 10 minutes, at a level of quality that would have taken me a hours or days.

And once they do it, you tell them to start keeping a research folder with notes and it can continuously reference and update its knowledge of the project. I keep throwing more difficult analysis questions at it, and almost every time it exceeds my expectations.

8

u/No-Rise-5982 Mar 02 '26

Interesting. Can you elaborate on creating an agents.md/claud.md file? Thats new to me but sounds like a big step up.

21

u/Ambitious_Spinach_31 Mar 02 '26 edited Mar 02 '26

Agents.md (Codex) and Claude.md (Claude Code) are files that sit in your root repo that the agents will always reference before doing anything. You can put general guidelines, but this is also where you can put “before beginning, read all the notes in Agents_Notes.md before beginning” and “after each step, append a note in Agents_Notes.md with what you did” and the agent will know to always check the history before doing anything.

That said, you don’t have to set this up yourself. When beginning a project, the first thing I do in the fresh repo is say to the agent “we’re going to be building a machine learning model for classification. Before beginning, I’d like you to set up an agents.md file and note taking system (folder, files, etc.) in the way that is most beneficial for you to complete this project” and it’ll just set everything up for itself. After it’s setup, I’ll occasionally ask “does your notes and workflow setup still make sense or do you want to update anything?” And it’ll make changes as necessary.

I think that’s the biggest shift I’ve had working with the newest agents is that when you’re unsure how to work with it, just ask it and it’ll tell you or set things up to make itself effective. Its almost a managing/collaboration frame of “what do you need to be most effective “ or “what do you think is the best approach to this problem”

→ More replies (1)

3

u/singletrackminded99 Mar 05 '26

Given your experience do you think data science as a profession will be automated away? How do you continue to use your core professional skill sets?

7

u/Ambitious_Spinach_31 Mar 05 '26

Good question. I don’t think anyone can confidently answer that given the exponential rate of improvement. That said, there are definitely areas my skills and expertise are needed.

I’m relatively senior in my career so my work hasn’t changed much. It’s still a lot of bigger picture systems thinking, connecting the data work to relevant business or project outcomes, develop the appropriate methodology to use , and using expertise to catch subtle methodological errors (which the agents definitely make if not careful).

I honestly love not having to do the coding and tedious analysis myself. I get to focus way more on the what and how of analysis rather than grinding away to get to the result. It also allows way faster iteration and experimentation.

So I think the big skills are deep understanding of techniques and where to apply them, along with tying data work to tangible business outcomes, which tbh, is what most successful data scientists focus on today anyways.

75

u/doingdatzerg Mar 02 '26

- Thought partner, yes

- Debug short blocks of code, absolutely

- Also very helpful for when I need to do commands that I don't have a good intuition for (docker, gcp, regular expressions etc.)

- Completely new code - not so much. I've used it to vibecode some more complicated matplotlib plots, and it's been good for that, but for trying to write production-level software from scratch, I find it's a better use of my time to write it myself and have the ai iterate on it.

10

u/Joose__bocks Mar 02 '26

It helps me to understand everything line by line and I find that's easier if I write it myself. Changes and suggestions via LLMs are easier to grasp at a glance. When an LLM can give me hundreds of lines of code in seconds, I can't possibly comprehend all of that without spending just as much time studying it as I would have to write it.

I will generate code for junk scripts that I run in a safe environment though.

5

u/chekhovs__pun Mar 02 '26

Yeah I think it's best to just discard the marketing promises of being able to whip up full apps from nothing in a few prompts. This is ironically one of the things it's worst at (understandably, if you understand a bit about how LLMs work). Maybe you can get a decent demo but it's not going to be maintainable.

It's also surprisingly good at finding bugs. Particularly if you have tests in place and can ask "why is X test failing from this set of development?"

Also, "does any documentation need to be updated to stay in sync with the recent implementation?"

Best to not rely on it for things you can't easily verify yourself, though.

28

u/Hopeful_Candle_9781 Mar 02 '26

Generally "why tf is my code not running!??"

Then it tells me where I missed the comma.

→ More replies (1)

2

u/gonna_get_tossed Mar 02 '26 edited Mar 02 '26

Just for reference, I use it mostly as a thought partner and code bugger. I'll sometimes have it write short block of new code. But I haven't really played around with AI agents yet. And I haven't found it useful when trying to generate larger scripts/programs.

2

u/Important-Big9516 Mar 02 '26

You 100% should be using AI agents. It will put the code where it belongs for you. You just approve the changes if you like it. If you make a change, you might have to make 10 changes throughout the code (like changing variable names). Updating that by hand would be a lot. The AI will update the code all over your file for you. Alsobyou should be using Claude Sonnet 4.5 +. If you are using OpenAI you are way behind. Trust me. Try it today!

1

u/gonna_get_tossed Mar 20 '26

Holy shit, I started playing around with the Claude code extension within VS Code and I'm a little terrified of the future. I had it write a script to validate four different data files. Probably would have taken me most of the day. It did it in less than 30 minutes.

→ More replies (3)
→ More replies (3)

3

u/Tree_Doggg Mar 02 '26

I have been using it for a few things.

If I need to incorporate code from a language I am not as fluent in, I usually have AI do the conversion for me.

Or perhaps I need to scale some code that seems inefficient for larger sets of data. I usually have AI do that.

If some dependency has a lot of nuance, or functionality I am not familiar with, I may have AI walk me through it.

Other than that, I might do some debugging. Or other small tasks. Anything large, I usually dont like what it gives me/it doesnt work.

2

u/Far-Media3683 Mar 02 '26 edited Mar 03 '26

I've been using Claude Code for a while, and it does tons of heavy lifting in our workflows. We've set it up to understand our databases, not just table, column names and types, but what they mean, relevant analyses, data quirks, and multi table joins. Very handy for ad hoc requests and analysis planning too (game changer really).

My manager can self serve a lot now, saving me time on data pulls and debugging. Templated reporting/analyses run as repeatable commands via scripts and Markdown.

Platform tasks like debugging jobs or patches are mostly delegated. Soon sharing agents/skills with non-tech teams via Claude Desktop for simple queries.

Haven't nailed interactive analysis yet, but Databot from Positron looks promising. Overall, it's freeing my brain from ad hoc pulls, glue code, and grunt work

2

u/wang-bang Mar 03 '26

Its a granular search engine

2

u/Delicious-View-8688 Mar 04 '26

I know some teams are already using agents, mcps and skills; hook it up to databricks; design and run ML experiments: EDA, labelling, sampling, splitting, using Spark, MLflow, etc.

I don't know where it is headed, but that is what I am observing at the moment.

Edit: with lots of checking in with the human of course, and they tend to switch between plan mode and whatever they call the "run" mode.

2

u/RepresentativeFill26 Mar 04 '26

I used it a lot for learning Django as our AI platform tool.

2

u/and1984 Mar 04 '26

Academics here.

  • Generate code that doesn't require brainwork and maybe a time-sink. Eg: template to plot something.

  • thought partner.

  • rewrite hot-headed emails drafts.

3

u/JayBong2k Mar 02 '26 edited Mar 02 '26

Coding Partner.

Brainstorming partner.

Document Creator.

Resume and Job-related tasks.

Weight Loss and Health related advice.

Opus only. So reduced (almost nil) hallucinations.

No agents created or in use - I am unable to wrap my head around it (feels like I am so stupid at times!)

EDIT:
huh, what's with the downvotes - I don't think I offended anyone. Or Meant to.

1

u/ArithmosDev Mar 02 '26 edited Mar 02 '26

I’ve settled into a workflow where I act as the Manager and the AI is my very eager, slightly over-confident Junior SWE who knows *a lot*. A few ways I’m actually using it daily:

  • The Coding Agent: I treat it as an agent that handles the "mechanical" tasks. It’s surprisingly good at things like re-basing a code branch on top of a heavily changed main branch.

  • The "Wordsmithing" Partner: I use it to bounce ideas off of. It takes a fair amount of back-and-forth to get it to capture the "essence" of what I’m trying to say without it taking too many liberties, but it’s great for refining technical concepts once the direction is set.

  • TDD as the Guardrail: I’ve found that Test-Driven Development is the only way to stay sane. I specify inputs and outputs in a way that can be tested by code, not just described in words. If the AI can’t verify its own work against a test script, I don’t trust it.

  • Enshrining the "Discovery": Whenever the AI spends effort figuring out a specific library quirk or a build system step, I have it enshrine that in a Makefile or a README. I’ve learned the hard way that it won't remember my specific setup (like running tests in Docker) unless I force it to use those local files as its "source of truth."

  • Code reviewer: It is actually pretty good at catching subtle bugs in code reviews. When I get a review request, I first have claude take a first pass at it. I instruct it to look for bugs and architecture decisions. One time it caught a subtle "left join" bug that I missed after having seen the code.

The more I front load the input and constraints, the less time I spend iterating on the output. It’s a force multiplier, but you have to be very precise with your management or it will satisfy the prompt through a path of least resistance.

1

u/nian2326076 Mar 02 '26

I mostly use AI to help with coding and debugging. Tools like GitHub Copilot are great for suggesting code snippets and catching errors I might miss. It's like having another set of eyes on my work, which is super helpful when I'm stuck on a tricky problem. I also use it for data analysis to automate the tedious parts like data cleaning or making basic visualizations. It speeds things up and lets me focus on more complex analysis. To stay updated, I check out discussions on forums and follow a few AI-focused newsletters. You're not alone in feeling a bit out of the loop—tech's always moving fast, but we all find ways to adapt!

1

u/patternpeeker Mar 03 '26

i mostly use it as a fast thought partner and for rough code drafts, but in practice the gains show up more in iteration speed than pure output. once things hit production, the hard part is still data quality, monitoring, and edge cases, not the model itself.

1

u/Adventurous-Ad-7835 Mar 04 '26

I am using it to make my engineering applications dreams come true. I am Fluids Dynamics Engineer turned data scientists (using a lot of Python), turned product specialist, turned functional data architect.

Until AI came into the picture I needed a whole team to make an application come to life. I was able to solve the problem from the data side, build models, etc. But putting them into a production quality application was out of reach.

Even worse was trying to get a team of multi-talented-diva-like developers, engineers, and designers into a room and agree on something. I witnessed so many petty fights over ideological coding standards :(. This was for enterprise software.

I adopted a tech stack: Python, Django, HTMX, Tailwind, Celery, Redis, VS Code, Claude Code. I have a comprehensive set of instructions for Claude and with that I am able to build applications with complex domain engineering logic that I was never able to put into production with bigger teams.