ChatGPT NEW Jaw-Dropping Feature! (10 Code Interpreter Use Cases)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in today's video I'm showing you 10 ways to use code interpreter inside of chat gbt hopefully you can bring this back to the workplace and impress your colleagues your boss or even yourself in some cases let's get into it before we jump into these tips I'm going to go ahead and show you how to turn code interpreter on you can click on these three dots go to settings beta features and turn on code interpreter if you don't have a paid account this won't be here for you most likely then you'll need to switch to gpt4 and turn on code interpreter you'll notice that this little plus button shows up once you turn on code interpreter this allows you to upload files to chat GPT the first way that you can use code interpreter is turning links into QR codes so it's this simple guys you just have to paste a link and say turn this link into a red QR code let's see if it can turn it red I haven't tried this yet I'm going to send the message foreign [Music] had a few issues trying to create a red QR code in fact it told me that it couldn't even generate QR codes yet but what I typed in next made it work so I just said turn my link into a QR code using Python and because chat gbt is so proficient in Python I just pasted my link and then it went to work generating that QR code for me now let's go ahead and see if this works okay I've got my phone right here I'm just going to open up my camera and let's go ahead and scan that QR code oh it does work look at that we have my YouTube channel on my scratched up nasty looking phone sorry about that on to the next tip with code interpreter you can create some really beautiful looking stuff let's go ahead and data visualize a map of the ZIP codes in the US what I'm going to say is create a heat map of the ZIP codes in the United States by population density use a blue and red scale for this blue being low population red being high population code interpreter is on let's go ahead and send this off okay so in this mode chatgbt does not have access to the internet so it's going to stop us right here and the reason that I still show these examples is because most normal people that are using chat gbt are going to run into issues like this too and I'm going to show you how you can get around them so what it says here is that we need to upload some data and it actually gives us a very clear road map of what it needs it needs the zip codes and the population density so I'm gonna go over and find this data for it right now so it turns out there's a whole lot more ZIP codes in the United States and I want to try to put in chat gbt so what I did is I just went ahead and grabbed the Michigan ZIP codes which is my home state and I put them inside of a Google sheet here cleaned up this data and now I'm just going to go ahead and hit file download we're going to download it as a CSV because python handles CSV really well now I'm just going to upload this file I'm gonna say I want to see a Geo map of Michigan with the ZIP codes in a heat map like I mentioned above not the entire United States and you do this for me I'm gonna send that off and it appears that it noticed that my data is in these fields in a weird way so I have the zip code in the population in one field the way that the data came through so it's cleaning that up now for me as you can see it's already done that so it's got density zip code and population and wow would you look at that we finally got it to work here are all of the zip codes and the proper coloring for each of them it did take a bit of finessing but chat gbt was very good at explaining exactly what it needed so that I could go out and find it and upload it and then it even was able to extract Michigan out of all of the USA zip code boundaries in a zip file that I uploaded this is very impressive but I would say that this scale is very heavy on the blue I want to see more of this red on this scale so that I can see a little bit more of the variance here I know that the variance is really strong in some of these areas and that's why it's showing this white here but I'm just going to say turn the middle of the scale to red as well well but lighter and make the scale smaller so that more red shows up I'm gonna hit enter wow this is much better look at this guys it's coming through amazing now I can see all of these areas that are super red near Detroit and Grand Rapids Kalamazoo area and we can even see some little anomalies up here in the U.P let's see what it comes up with if I simply ask it to create an animation in Lo-Fi rid style of fireworks exploding on click using python make the firework colors either red white or blue do this on a 250 by 250 grid window make sure that on click the location creates a simple firework animation let's see if it can do this so it looks like this may have worked but what it wants me to do here is it wants me to run on this pip install pie game in my command line so I'm just going to go ahead and copy this I'm going to paste it into my command prompt and hit enter and it's going to install pygame now over here I'm just going to paste my code into this text file and I'm going to turn it into a python file that I can run on my computer actually I'll just hit copy code paste it here we're going to hit file save as and I know that I need to put quotes around this if I want it to work so let's just put quotes around this so that it keeps it as a python file and then I'm just going to copy the name fireworks game dot pi and I'll actually put underscore in there we'll make it all lowercase just to be safe I'm going to copy that and hit save next I'm going to type in CD desktop this will bring me to my desktop where this fireworks game is located I'm just going to ask how do I run the fireworks game and it's going to tell me to install python install Pi game which I've already done we've created the python file and now as you can see it tells us to type in Python and then type in the file name once you're on the desktop here so let's go ahead and type that in right here python then paste fireworks underscore game.pi and hit enter and as you can see it's popped up this window and let's just click around a little bit as you can see it's populating these little random blobs and although they might not look like perfect fireworks I would say it's pretty neat and they're getting bigger as it goes next let's see if chat gbt can actually edit photos I've seen some people doing this on Twitter I want to see if it's possible for me and at the end of this I want to see if I can turn it into a gif and have it be like zooming in and out and whatnot so what I'm going to do is just upload a photo I need to be on gbt4 code interpreter I want you to turn this photo black and white let's see if it can do that I'm going to upload a photo that I got off of unsplash and right now as you can see it's this orange and black color I want it to be black and white so let's head over to send a message send it off all right let's see if this works boom as you can see it has actually worked it turned the image into a black and white image which is very cool that it can now do this this is very intuitive now let's say use this image to create a gif that is 10 frames I want it to slowly zoom in let's try that okay so it looks like I've worn out my welcome with chat gbt let's come back later alright so we've waited and chat gbt is back up and running now so what I'm going to do next is see if I can create a gif let's head over to chatgpt4 code interpreter and let's go ahead and drag this image into here and this is just a wood texture I'm just going to say turn this image into a lower resolution version so it's easier to process then start zoomed in on the left side and hand to the right side of the image turn this into to a DOT GIF and allow me to download it it's asking me for how many frames I want the GIF to be just for clarification which is kind of nice that it's doing that and it's not just assuming it's actually wanting to get some good details I'm just going to type in 15 frames as you can see I can open this up and I can see the work as it's parsing out these frames alright and now it's provided the download so let's go ahead and try this out all right and here we are we have the GIF and it actually appears to be working although it is crawling at pretty much a snail's pace and it seems really low resolution and kind of like slow and laggy that's because of the nature of this file and the fact that it's fitting this pan into 15 frames I would still say that it's pretty impressive that a language model can take that basic prompt that I gave it and turn it into something tangible like this it's going to be incredible once it can do this with an image in mid-journey or something like that and turn that into a gif or a video next I'm going to show you these mind-blowing radar charts that you can build out using chat gbt but first you need something to compare on a few different dimensions what I'm going to do is I'm going to ask chat gbt to categorize my videos into five different buckets and then I'm going to have it generate a radar chart based on that let's go ahead and upload my productive viewed YouTube data then I'm just going to say parse out the top five video topics based on the video titles I want to put these videos into five buckets mainly based on the software being used then total up views watch time subscribers estimated revenue and click through rate for each bucket slash topic after that put each dimension for each of the buckets in a radar chart one for click through one for estimated Revenue one for subscribers watch time and Views each metric will compare the top five buckets on their totals using radar charts that was pretty long-winded but let's see if we can get some beautiful looking radar charts using this prompt okay so it's asking me about the other specific names that I want them to look for so I'm just going to include Miro mid-journey Trello notion let's also add Coda and click up as well and I added here I know I included a few extras please include all of these buckets let's hit enter all right now we get these beautiful radar charts one for views watch time subscribers estimated revenue and Impressions click-through rate you'll notice that in most cases it favors notion on estimated Revenue subscribers watch time and Views these are all metrics that are basically going to favor notion because I've just made a lot more notion videos they've got more views and with more views you're going to increase all of these metrics but one of the metrics that is getting a little bit of a different result here is Impressions to click-through rate as you can see my impression to click-through rate is really high for something like Trello in comparison to the other tools you'll also notice that Notions is average or lower and compared to some of these other tools this just goes to show that my Trello thumbnails and titles are really striking a chord with my audience and I would say the same is true with Miro and potentially click up mid-journey could use some work another neat thing about this is going to include some information and basically just reiter to what I said notion generally performs best across all metrics Miro has relatively High watch time and estimated Revenue compared to others but falls behind views and subscribers see what it means by that watch time is a bit higher for me or I suppose there's a bit of a jot there but it's definitely not as high as notion because notion just dwarfs it but I do see the little uh climb that it has I am curious to see what happens if I exclude notion from the data let's regenerate all of these categories but exclude notion and let's also exclude mid-journey and here we are with a more varied looking radar chart this is now showing Trello Miro and click up and it gives me a much better idea of where everything compares to itself this is an interesting way to see that Miro is leading in views and Trello is next up and click up follows in third place radar charts can be very helpful to generate but if you're not a data scientist this could have been a lot harder before next let's see if code interpreter can create the game Snake all right now let's go ahead and install this Windows curses and let's go ahead and grab our code paste this code now I'm going to hit file save as and we're going to name it snake dot p y I'm going to hit save and as you can see it has generated a very simple game of snake here with these little pi numbers and I'm able to use it I'm using my arrows right now so this game could go on for quite a while before I fail because there's just so much room here but it's pretty neat that a couple simple prompts could get us this far along now let's dive into another thing that code interpreter is really good at and that is formatting your data here we are inside of a Google sheet and we just have one column called name right here and that includes first and last name I'm going to go ahead and hit file save as a CSV we'll just call it names and I'll hit save and now I'm just going to go ahead and upload that file I'm just going to say split the name column into first and last and as you can see it continues to spit this out but what I want is I want a fresh CSV that I can download so I'm just going to say finish all of the names and then allow me to download a CSV with the new names formatted in it all right let's go ahead and download this and see if it works alright so we've gone ahead and opened up the names right here and as you can see it's kept that initial name column but it's also created a first and last name column now next I'm going to upload my top Spotify songs between 2017 and 2022 and see what code interpreter can come up with in terms of a data visualization for my music taste if you can download your data from Spotify they give you lots of interesting data about your music taste I used exportify.net to get my data let's go ahead and tell chatgpt what we're going to try to do here I'm going to be uploading my top songs from 2017 2018 2019 2020 2021 and 2022 along with some useful data related to them create 10 interesting data visualizations with the data inside please just respond with upload next until you have all of the sheets here's 2017 2018 will follow and when I get to 2022 start generating the 10 interesting data visualizations or my cumulative music over all the years all right I'm dragging in 2017. now let's go ahead and hit send message it should say upload next which it does let's go ahead and upload 2018 next and it's still good 2019 2020 2021 and finally 2022 let's see if it works when I hit send message wow look at that so it was able to count all of these files until I finally came to 2022 so I don't know if It Came Upon This conclusion that this is 2022 based on this title or based on how many I said I was going to upload in the order that I said I was going to upload them but it has gone into work now on 2022 so that's amazing so here are the 10 visualizations that they are going to create so it says let's start creating the visualizations please note the data must contain the relevant columns for these visualizations to be created if some columns like genres are not present we may need to adjust the visualization accordingly let's go let's do it and now it's going to work writing out all of these visualizations and wow look at that it's actually pulled in my top popular artists from 2017 up to 2022 cumulatively added them together and put them in this nice list here it's also given me the highs and lows for Dan sensibility scores along with the averages over the years it appears that Tempo has slowly increased or at least the maximum Tempo has slowly increased I've also got a much wider range on 2022 we were all the way up here to 200 beats per minute and we were lower than 60 beats per minute at one point all of these Candlewick type charts are pretty neat but I want to go ahead and create some different charts so let's go ahead and create some radar charts I'm just going to say create a radar chart of each of these so I can see the dimensions based upon year and boom as you can see we now have a beautiful radar chart this shows us all over the map where we're at in terms of our loudness energy dance ability Tempo instrumentalness acousticness and speechiness you'll notice that 2019 was our most acoustic year while 2021 was the most danceable year next I'm going to upload some data that I've selected using my aura ring which is a sleep tracking and activity tracking wearable that I wear on my hand pretty much every day that I get a chance so I've gone ahead and created a file from all the way back to 2019 to present day and I'm going to go ahead and upload this with a few of my sleep stats alright my aura Trends are updating and I'm just going to say create some data visualizations or my aura ring data showing how my results have varied over time this is weekly average data I'm going to hit enter alright so it's asking me which specific metrics I'm most interested in these are the ones that I've imported into here so I'm just going to say create a radar chart with all of the metrics on it for each year I'll put the averages for for the metrics all right let's see what that does okay the radar chart is pretty interesting for this but I also want to see steps on a bar chart so let's go ahead and just say let's see a bar chart with all the weekly steps data wow this is pretty incredible it actually imported pretty much all of the steps data I think for each week so as you can see my steps have gone down and it's actually because I don't wear my aura ring as much and to be honest I probably don't run as much as I used to either so this is kind of an interesting chart to see how my steps have decreased over time but it looks like they are kind of starting to pick back up out of this middle low right here now let's go ahead and see our average HRV on a line chart I can get a really good idea of what my average heart rate variability is throughout the years this is going to be really interesting to look back on when I have 10 20 or even 30 years of data if you enjoyed this video please go ahead and leave a like comment below and subscribe for more content like this if you enjoyed this video you'll probably enjoy this video as well
Info
Channel: Productive Dude
Views: 26,345
Rating: undefined out of 5
Keywords: code interpreter, chatgpt code interpreter, chatgpt, chatgpt update, chatgpt code interpreter update, chatgpt update review, how to use code interpreter, how to use code interpreter in chatgpt, chatgpt code interpreter plugin, code interpreter chatgpt, chatgpt new feature, chatgpt new update, code interpreter use cases, code interpreter chatgpt data analysis, chatgpt data analysis, code interpreter tips, code interpreter review, new code interpreter
Id: BcnQ1xV6FFY
Channel Id: undefined
Length: 20min 23sec (1223 seconds)
Published: Wed Jul 12 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.