Matt Dancho (Business Science) Profile picture
Apr 20, 2023 25 tweets 7 min read Read on X
BIG NEWS: #ChatGPT breaks #Python vs #R Barriers in Data Science!

Data science teams everywhere rejoice.

A mind-blowing thread (with a FULL chatgpt prompt walkthrough). 🧵

#datascience #rstats
It's NOT R VS Python ANYMORE!

This is 1 example of how ChatGPT can speed up data science & GET R & PYTHON people working together.

(it blew my mind)
This example combines #R, #Python, and #Docker.

I created this example in under 10 minutes from start to finish.
I’m an R guy.

And I prefer doing my business research & analysis in R.

It's awesome. It has:

1. Tidyverse - data wrangling + visualization
2. Tidymodels - Machine Learning
3. Shiny - Apps
But the rest of my team prefers Python.

And they don't like R... it's just weird to them.

So I wanted to see if I could show them how we could work together...
Let’s start with a prompt.

I asked chatgpt to find a data set that I used for this example. Image
...ChatGPT found it... Image
... And gave me this code to read the data... Image
I prefer the tidyverse, so I asked Chatgpt to update the code. Image
That looks better. Image
With the data in hand, it’s time for some Data Science.

I asked this simple question. Image
ChatGPT's response was impressive. Image
But, even though I’m an R guy, my team uses Python for Deployment…

In the past, that’s a huge problem.

(resulting in days of translations from R to Python with Google and StackOverflow)
But now, that’s 1 minute of effort with chatGPT.

Can I show you?
I asked chatgpt to convert the R script to python... Image
And in 10 seconds chatgpt made this python code with pandas and scikit learn. Image
ChatGPT did in 10 seconds something that would have taken me 2 hours.

But let’s continue.

The reason we had to convert to Python is for “deployment”

Deployment is just a fancy word for allowing others to access my model so they can use it on-demand.
So I asked chatGPT this: Image
And ChatGPT made me a Python API using FastAPI. Image
But this code is useless…

… Without a docker environment.

So I asked chatGPT to make one: Image
And chatGPT delivered my Docker Environment's Dockerfile: Image
So in under 10 minutes, I had ChatGPT:

1. Make my research script in R.

2. Create my production script in Python for my Team

3. And create the API + Docker File to deploy it.
But when I showed my Python team, instead of excited...

...They were worried.

And I said, "Listen. There's nothing to be afraid of."

"ChatGPT is a productivity enhancer."

They didn't believe me.
My Conclusion:

You have a choice. You can rule AI.

Or, you can let AI rule you.

What do you think the better choice is?
If you want help, I'd like you to join me on a free #ChatGPT for #DataScientists Workshop on April 26th. And I will help you Rule AI.

What's the next step?

👉Register Here: us02web.zoom.us/webinar/regist… Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Matt Dancho (Business Science)

Matt Dancho (Business Science) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @mdancho84

Jul 14
RIP Data Scientists.

The Generative AI Data Scientist is NOW what companies want.

This is actually good news. Let me explain: Image
Companies are sitting on mountains of unstructured data.

PDF
Word docs
Meeting notes
Emails
Videos
Audio Transcripts

This is useful data. But it's unusable in its existing form. Image
The AI data scientist builds the systems to analyze information, gain business insights, and automates the process.

- Models the system
- Use AI to extract insights
- Drives predictive business insights

Want to become a Generative AI Data Scientist in 2026? Image
Read 4 tweets
Jul 13
This is huge.

A group of 50 AI researchers (ByteDance, Alibaba, Tencent + universities) just dropped a 303 page field guide on code models + coding agents.

And the takeaways are not what most people assume.

Here are the highlights I’m thinking about (as someone who lives in Python + agents):Image
1) Small models can punch way above their weight

If you do RL the right way (RLVR / verifiable rewards), a smaller open model can close the gap with the giants on reasoning-style coding tasks.
2) Python is weirdly hard for models

Mixing languages in pretraining helps… until it doesn’t. Python’s dynamic typing can create negative transfer vs. statically typed languages. Meanwhile pairs like Java↔C# or JS↔TS have strong “synergy.”
Read 13 tweets
Jun 30
A senior Google engineer dropped a 482 page PDF on agentic design patterns.

482 pages.

Most AI engineers bookmarked it and never opened it again.

I read the whole thing.

Here are the top 5 patterns (explained in plain English): Image
PATTERN 1 — Single Agent

The simplest and most common starting point.

One model. One system prompt. A bounded set of tools.

The model decides which tool to call, observes the result, and keeps going until it has enough to answer. Image
PATTERN 2 — Multi-Agent Sequential

Specialized agents run in a fixed order.

Each one's output feeds the next one's input. Image
Read 8 tweets
Jun 9
🚨BREAKING: Google just DROPPED a masterclass on GPUs

Get it here 100% free: Image
FULL GUIDE: HOW TO SCALE YOUR MODEL: jax-ml.github.io/scaling-book/

PART 12: HOW TO THINK ABOUT GPUS: jax-ml.github.io/scaling-book/g…

I have one more thing before you go.

If you want to become a generative AI data scientist in 2026 ($200,000 career), then I'd like to help: Image
On June 24th, I am hosting a free workshop to help you get started with AI + DS projects in Python.

Register here (500 seats):   learn.business-science.io/ai-registerImage
Read 4 tweets
Jun 5
This 277-page PDF unlocks the secrets of Large Language Models.

Here's what's inside: 🧵 Image
Chapter 1 introduces the basics of pre-training.

This is the foundation of large language models, and common pre-training methods and model architectures will be discussed here. Image
Chapter 2 introduces generative models, which are the large language models we commonly refer to today.

After presenting the basic process of building these models, you explore how to scale up model training and handle long texts. Image
Read 8 tweets
May 29
RIP document extractors.

Google just released LangExtract: Open-source. Free. Better than $100K enterprise tools.

Here’s what it does: 🧵 Image
What it does:

→ Extracts structured data from messy text
→ Grounds every field to the exact source location
→ Handles 100+ page docs
→ Generates interactive HTML for verification
→ Works with Gemini + local models Image
What it replaces:

→ Regex/fragile parsing
→ Custom NER pipelines
→ Expensive extraction APIs
→ Manual data entry Image
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(