Chase Lean Profile picture
Jul 12 15 tweets 5 min read Twitter logo Read on Twitter
How I use ChatGPT Code Interpreter to create incredible data visualizations

I just made this awesome animation of world temperature change from 1950-2000.

Red countries = 20% hotter vs 1950
Blue countries = 20% cooler vs 1950

How did I do it?

Steps below👇
Step #1

I first obtained 2 data files:

1. Global temperature data from Kaggle (.csv)
2. The outline of countries from Datahub (.geojson)

Then, I uploaded them to the ChatGPT Code Interpreter model.
Step #2

I waited for GPT to load and process the data.

There were some inconsistent country names between the two files.

So it automatically helped me to do some data cleaning.
Step #3

After that, I asked it to plot a map of these countries.

I asked it to color the countries based on their % temperature difference compared to the year 1900.

I also specified some extra stuff, like what color to use for the background.
Step #4

After a few seconds, here are the results.

But I noticed something weird.

Why were Canada and Russia blue?

Due to global warming, they were supposed to be hotter in 2000 compared to 1900, so they should have been red.
Step #5

So I asked GPT to explain.

And it looks like it made a huge mistake.

The temperature in Canada in 1900 was -5°C, while the temperature was -4°C in 2000.

Which means the temperature had increased, not decreased!

So GPT was wrong.
Step #6

I asked GPT to correct itself.

Then, I asked it to make a new plot.
Step #7

Finally, I asked GPT to adjust the title, as well as the color of the plot.

This was the result.
Step #8

Next, I wanted to make an animation!

I asked it to:

1. Simplify the map (to speed up processing)
2. Animate the map at 2 years per frame
3. Handle missing data
4. Provide me with a link to download the video
Step #9

Here's the result.

The video worked, but there were 3 problems:

1. The data for the US had disappeared
2. The label for the year was in the wrong place
3. The color bar was missing

Dealing with this took me a while.
Step #10

I asked it to double check the US temperature data and move the label for the year.

Eventually, it managed to fix all the problems, except the color bar.

I just couldn't get it to appear properly in the plot.

Other than that, I'm quite happy with the result.
Step #11

I downloaded the video, and here is the result:
Here's what I've learnt from this experiment:

1. GPT is a powerful tool for visualizing data
2. It can write complex code quickly
3. It sometimes repeats its mistakes
4. It currently has limited memory and processing power
Some suggestions if you are running this:

1. When an error occurs, ask GPT to troubleshoot for you

2. To avoid running out of memory, ask it to optimize the code first

3. When something works, ask it for the code. Copy & paste this working code into a future version of GPT
Overall, GPT Code Interpreter is an extremely useful tool. But it still has its limitations at this moment.

Want to see more real GPT experiments?

1. Follow me @chaseleantj for more high quality AI content.

2. Like and retweet the first tweet below to share it with others!… twitter.com/i/web/status/1…

• • •

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

Keep Current with Chase Lean

Chase Lean 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 @chaseleantj

Jul 13
How to use Midjourney to generate ideas for your next app interface

Did you know that you can ask Midjourney to come up with ideas for incredible app designs?

Prompt: UI, [TOPIC] app on boarding

Here the top 10 examples:

#1 UI, saltwater fishing app on boarding https://t.co/H5pSr8HXMUtwitter.com/i/web/status/1…
#2 UI, backpacking app on boarding
#3 UI, fantasy story app on boarding
Read 11 tweets
Jul 9
New Experiment: How I turn image into video with ChatGPT

I just destroyed Thanos using ChatGPT!

This video animation was generated using the new Code Interpreter feature.

How did I do it?

See the steps below 👇
Step #1

We will use the ChatGPT Code Interpreter model.

To enable it, go to Settings -> Beta Features -> Code Interpreter

It will be available to all GPT plus users within the week.
Step #2

Select "Code Interpreter" from the dropdown menu.

You'll need an image to animate.

Upload the image by clicking the "+" icon indicated in the picture below.
Read 11 tweets
Jul 8
The biggest compilation of what ChatGPT Code Interpreter can do

Code Interpreter is hands down the most powerful version of ChatGPT.

I spent 3 hours compiling the best Tweets on this feature.

Below are 20 amazing examples of how people are using it right now: https://t.co/TJ7mOqrGXztwitter.com/i/web/status/1…
First, bookmark the tweet above so you won't lose it 👆

In this thread we'll look at how Code Interpreter can:

• Turn images into videos
• Extract text from an image
• Be your data scientist
• Analyze the stock market
• Generate QR codes

And more!
#1 Turn images into videos. Created by yours sincerely :)
Read 23 tweets
Jul 8
Breaking: Now you can turn images into video with ChatGPT

How to do it?

Use the new feature called Code Interpreter.

See the steps below 👇
Step #1

We will be using the ChatGPT Code Interpreter model.

To enable it, go to Settings -> Beta Features -> Code Interpreter

It will be available to all ChatGPT plus users within this week.
Step #2

Select the "Code Interpreter" option from the dropdown menu.

Then, upload the image that you want to animate.
Read 8 tweets
Jul 5
🧵Midjourney tip: 17 weather conditions you want to use to generate awesome AI images

I'll show you not just the type of weather, but also the emotions associated with it.

Make sure to bookmark this!

Found it helpful? Like and retweet so that your friends can see it too. https://t.co/FUZve9nQjqtwitter.com/i/web/status/1…
#1 Bright Sunlight

This weather is cheerful and optimistic.

Apart from the mood, it even affects the woman's clothes, making it bright yellow.

Example: street photography of a woman on a busy street, shot with Fujifilm, bright sunlight
#2 Clear Sky

This weather is bright and neutral.

It represents a peaceful day, and is good for regular images when you don't want any specific emotion.

Example: street photography of a woman on a busy street, shot with Fujifilm, clear sky
Read 19 tweets
Jul 4
Midjourney panning just dropped today.

Here are the 10 best tweets on panning you don't want to miss:
#1 Panning a giant beanstalk by @bennash
Read 12 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 on Twitter!

:(