ChatGPT for Data Analytics: Beginner Tutorial
Key Takeaways
This video tutorial demonstrates the use of ChatGPT for data analytics, covering topics such as data analysis, statistical analysis, and data visualization, using tools like ChatGPT, GPT-4, and Python, with a focus on practical applications and hands-on exercises.
Full Transcript
data nerds welcome to this tutorial on how to use chat TBT for DEA analytics we're going to be covering all my tips and tricks that I've been using in my job as a DEA analyst over the past year and it's helped automate a lot of portions of my job saving me up to 20 hours a week so what are we going to be covering well in the first portion we're going to be covering the basics of chat gbt from understanding your options and setting it up to best practices for how to properly prompt so it actually does your job we'll even be using this to read graphs yeah it can read graphs kind of crazy when I found this out anyway in the second portion of this video we're going to be focusing on Advanced Data analysis a powerful feature within chat gbt that allows you to write and read code all without having to code yourself we'll go through all the steps in the data pipeline from first importing and exploring a data set to then cleaning it up and creating beautiful visualizations oh we'll even have a bonus of using some machine learning to predict values by the end of this you'll have a full project that you can then showcase on how you use this tool for data analytics and don't worry if you don't have any prior data analytical experience or coding experience none of this is required for this video one last note before we jump in you may hear me during this video refer to this as a course and that's because the video contents of this are a portion of my course on chat gbt for data analytics and this course has over 6 hours of video content along with step-by-step exercises a final Capstone project and even a certificate from me that you will receive upon completion and all of this while we go into more detail at this time stamp below or you can just jump to this link in the description speaking of links I'll also be including a lot of resources from this video such as the data set that you'll be using for the project along with all my chat history transcripts to follow along with that let's actually get into setting up chat GPT all right so let's get into the options that you have available for using chat gbt for this course and then finally we'll go into one of the options on how to actually set it up which I think it's going to be applicable to most of the users of this course so the first option is chat gbt plus and this is the option that I'm using Freelancers use this contractors and even job Seekers uh some people with even within companies maybe even be using this so this is going to be the choice of most people now chat gbd plus here in the United States is about $20 a month and with this you have an availability to access their newest and most capable model to this case it's GPT 4 um this may change be a higher number uh model depending on when you take the course and we'll update this course depending on if that affects the course contents but overall you have access to the newest and greatest model from there it has some faster response speeds also you have access to plugins and Advanced Data analysis and both of these things are the core of what this course is going to take advantage of to make sure that you're doing data analytics correctly in chat GPT now the other option is chat GPT Enterprises and it's going to have a similar interface that as uh chat gbt plus but it's going to be through a separate service and it's going to be mainly that your company is now paying for this chat BT Enterprise Edition and then you as an employee of the company have access to it now chat gbt Enterprise solves a lot of problems when dealing with secure data specifically stuff like Hippa data confidential or even proprietary data it will all maintain that safe Chach BT plus doesn't necessarily do this but we're going to be going over in this course how to safeguard your data if you have concerns with that so if you have either of these options such as chat gbt Plus or chat gbt Enterprise this is the end of the video for you your task for this video will be to open up a browser and get J gbt loaded for everybody else we're going to continue on and actually set up chat gbt plus the first thing to do to get set up is go to open.com and select try chaty BT from there we're going to select sign up I use my Google credentials CU I feel that's easier and so I don't have to forget a password and so you'll use that and login with your Google credentials it will send you an email to verify that it's actually you after that you'll be directed back into that chat that we're going to be operating in for basically the rest of this course I'll go ahead and accept these terms and agreements and also these tips so right now we're using the free version of chaty BT which is this model right here gbt 3.5 but we need the new and greatest model in order to get all those Advanced capabilities and advanced analysis so we need to upgrade to plus we can either do it right here or you can select it up in this menu on the left hand side and we can see from this we have the plus version and it's 20 bucks a month right now they have this sign up for wait list and I don't think you're have to wait that long but they're pausing it because there's been a lot of different influx based on these new upgrades of chat gbt and apparently everybody wants to get in now either if you have the wait list or you're able to actually sign up immediately which hopefully you can you'll then be directed to this screen right here which is where you'll actually be putting in your payment information they're accepting credit cards right now and you'll be subscribing for that 20 bucks a month make sure you're comfortable with paying that 20 bucks per month before proceeding but just to reiterate you do need this chat gbt Plus for this course after that you'll be directed back into this chat and now we'll have all models available so in our case at the time recording this I have that GPT 4 model and GPT 3.5 we're going to be using the GPT 4 for this course because it has that browsing and Analysis in it and this home of this chat is going to be located at chat. open.com and I would save this to your bookmarks or to your favorite so that way you can easily access it all right with that now it's your turn to jump in and actually go through and set up chat gbt plus if you don't have it set up already and after that we're going to be jumping into some more examples on how to use this all right all right in this video we're going to be going over the layout of Chach gbt and all the different functionality that's involved with it to get you up and running to do your first prompt now Chachi BT just recently in November of 2023 went through a layout change and unfortunately I went through and filmed this entire course and so I'm going back and refilm some of these videos anyway you're going to notice in this course sometimes that the old layout is inside of some of these videos don't be alarmed by this I'm going through and cting any ones that need to be updated but if you do notice there's differences in what my Chach BT and your Chach BT looks alike overall I'm trying to tell you this don't be concerned anyway let's go through the layout you should be seeing over here on the left hand side we have our sidebar and then right here on the um right hand side we have our actual chat we'll be interacting with our gbt model for the sidebar you can either close it out or bring it back in up at the top they have all the different gpts you probably only only have one GPT right now of chat GPT below this it has our different chat history and then underneath that you can refer a friend and then next is settings settings it's a whole another video because there a lot to go into this so stay tuned for that one so back to the gpts up at the top gpts you can actually click the explore menu right here are custombuilt models built on top of Chad GPT to perform specific functions so I built a GPT actually for this course called data analytics and I'll link it below and in the exercise and you can actually go into this data analytics title GPT and quiz it on the contents of the course now there's also a whole host of other gpts as well but the one we're primarily going to be focusing on besides that chat bot for this course is this one up at the top that you have already should have and that's just chat gbt now with this specific one we can go up to the top leftand corner and you can select the newest greatest model which I recommend doing and that's going to include as of filming this dolly browsing and Analysis and this model is great because it includes everything we're going to need from this course from browsing the internet to performing with that Advanced Data analysis plug-in that we'll be going over in a complete chapter gbt 35 as of filming this is in the free version we're not going to be really messing with that then we'll also be jumping into also plugins in the future specifically this notable plugin but for the time being let's just stick with that GPT 4 model so let's prompt chat GPT with our first prompt asking it who the heck are you and what can you do to find out what some of the limitations are of it and it goes into telling you a lot of the stuff that I've told you already now some things to note with this so it provided a response you can copy this response you can also like it and dislike it to help feed the algorithm on whether it's performing good or not you can also click this regenerate and this is great for if you're getting response or it's getting held up and you want to regenerate a new respon response to get it from a different angle and as you can see it's completely different even a completely different layout from what we got before I'll be honest I like this one a little bit more so I'm going to say it was better up at the top right we have a share icon so you can take this link that is actually provided with Chad GPT and I'm going to go ahead and paste it in a new browser right here so that way you can see it and those even without a Chad GPT account can go in and actually view the results of what you got from this and then in the bottom right hand Corner we have this question mark they have an help and FAQ some release notes term and policy I really honest I don't really use that much the one I do use is keyboard shortcuts specifically I would commit these two to memory the copy last code block and the copy last response these are great at actually grabbing different things that I'm getting from Chach BT and pasting it somewhere else where I may be working the last thing to note is we can actually change these chat so this is our chat history we're right now in this one titled data content wizer and and I don't really like the name of it I can actually go in and select rename for important chats I like to begin them with an emoji so that way they're easy recognizable and then also give it an appropriate title all right so now it's your turn to perform some tasks I want you to go into that base Chad gbt model and actually prompt it to understand similar to that what I asked it who the heck are you and what can you do additionally I want you to get that chatbot for this course loaded into your menu so I'm going to include a link in the exercise for you actually to go to it and it's going to take you right to here and it should add it to your sidebar for this one feel free to prompt it any questions about the course right here they have some recommended things I'm going to ask it hey what's Luke's course about and from the transcripts that I built this bot on top of it actually goes into a lot of the different areas that we're going to go in for this course so this is pretty cool this will be a great tool for you actually to quiz yourself and also ask questions if you get stuck all right with that one see you in the next one all right let's now get into basic basic prompting techniques that you need to take advantage of in order to maximize Chachi BT's capabilities so as you found out from the exercise in the last video Chachi BT has a knowledge level up to a certain level and in this case as we're filming this it's up to April of 2023 which is about 6 months ago not too bad so let's actually try to quiz it on something that happened recently Sam mman who was the CEO of open AI recently was outed and they have a new person in let's ask if Chach PT knows this so I ask it who is the CEO of open Ai and it tells me it thinks it's Sam Alman still now this doesn't mean that this model is useless we can actually browse the internet so if I ask it can you access the internet it's going to tell me nope I can't accent which is really confusing anyway chat gbt sometimes is going to hallucinate and it's going to make up things that it doesn't know that it's capable of you have to just tell Chad PT that it can do it so if you can see me do anything in any of these videos you need to just basically reprompt chat gbt until it is capable of it so I'm going to prompt chat gbt to use a specific feature Bally going to say search the internet and find out who the CEO of open AI is and we'll get in a little search bar right here saying that it's going to different websites trying to figure out who it's actually is and we finally have this update on open AO yep uh Mira is now taken over as the interim CEO so this model is really nice because not only does it have that internet browsing like we just did but also analysis which we're going to be getting to in a future chapter so let's now get into the core of what this video is actually about and that is what is a prompt because we need to understand this in order to best understand how best to use chat gbt and it answers with this a prompt is a message or instruction that guides or initiates a response or action and we're going to be working with improving our prompts a lot with this course because if not you're going to think that it can actually do a lot of the tasks that you can actually automate with your job let's get into some examples so I tell chbt I'm a 5-year-old explain what prompting is to me in the style of Dr Seuss and it gives me this pretty nice nursery rhyme about how and what prompting is and I think it does a pretty good job of explaining what prompting is this would be pretty good if I wanted to give it to somebody like my 5-year-old niece now with this one button you need to notice is this regenerate so I can actually regenerate a response if I'm not liking it or I wanted to maybe try a different style I'll do this and then it'll provides me even new results I like this one a little bit better because it's a little bit shorter and easier to read this summarizes pretty well with prompts you guide what I will say like colors got a bright sunshin day all right so why is this prompt so much more successful in my opinion well it comprises of two different parts the first is the context and the second is the task context is like your background in this case I'm providing I am a 5-year-old that's the context the task is explain what prompting is in the style of Dr Seuss from now forward you're always going to be riding chat chbt with not only a task but also context and we'll be able to automate context via custom instructions but we'll get that in a bit so let's take this to a more extreme example of how it can actually provide this kind of detailed answer we may need let's provide it with I am a distinguished Professor with many academic achievements in the field of AI and machine learning explain to me what prompting is in a similar format of an academic research paper with this prompt it goes into a lot more detail compared to our last example in defining what a prompt is and if I was an academic Professor I would say this would probably be more suited to what I would need that Dr Seuss nursery rhyme so I think this is really good and we need to get in order to frame it for us so that is going to be your next task I want you to come up with a context statement that best describes you in order to get the results that you want out of Chach BT use the similar example of explain to me what a prompt is and test different ways of using that context statement all right I'll see you in the next one all right all right in this video we're going to be going over the settings that I have set up for chat gbt in order to maximize its capabilities and give it the results that I need now in the previous exercise you should have developed a personal context statement that best describes you and how chat gbt should perceive you in order to provide the best results for me I have this one I'm a YouTuber that makes entertaining videos for those that work with data AKA data nerds give me concise answers and ignore all the Necessities that open I I programmed you with use emojis liberally use them to convey emotion or at the beginning of any Billet Point basically I don't like Chach btb rambling so I use this in order to get concise answers quick anyway instead of providing this context every single time that I start a new chat chat gbt actually has things called custom instructions we can go to the settings down at the bottom lefthand corner and click custom instructions in here there are two dialogue boxes the first one is what would you like chat chbt to know about you to provide better responses this is specifically related to the context and I have in here the things like I'm a YouTuber I prefer direct responses now below that it has how would you like chat GPT to respond and this is more aimed at getting right the format and the tone that it should be replying in and so this has the section on giving concise answers and to use things like emojis you need to make sure here at the bottom is enabled for new chat so that way whenever you start one this will be loaded into to it you'll be adding your custom instructions for the exercise for this video but let's keep going through this going back into the settings they have a few things you can actually do first is to access your plan right now we have chat GPT plus that's expected next you can access your gpts which I have a whole video on but it will take you to this menu which you can also access via clicking explore right here the last thing to go over in this is the settings and beta first is the general tab that you can set the theme of either dark or light mode you can also clear your chat for the beta feature tab you want to have everything enabled specifically at the time of filming this you want the plugins and Advanced Data analysis when chat gbt has new features come out that they want to beta test check back here and enable it and then you'll be able to get it within your chats but these are the core two that you definitely need for this course next is data controls and here it has whether you want to maintain your chat history and training now if you do not want open AI to actually use the contents of your chat to train these models you want to unclick this whenever you do this though the one drawback is that it won't save chats greater than 30 days now one thing to note on security if you're working with confidential or proprietary data specifically things like Hippa dat you're not going to want to put this into chat gbt plus I don't feel it's secure enough for that type of data but a workaround to this is chbt Enterprises and it's something that you're company should be purchasing in order to be able to put secure and confidential data into chat gbt this Enterprise Edition is sock to compliant which is the same uh security compliance as a lot of cloud providers like Google Cloud Amazon web services so if your data is good enough to go in the cloud there it's probably good enough to go within here but that's specific to the Enterprise not necessarily chbt plus anyway nothing from this course is proprietary or confidential so I'm leaving this box unchecked the next is shared links and you can go in and actually see all the different links that you shared before they also have options to export the data and then delete your account probably wouldn't touch that the last thing is Builder profile which this is configured for whenever you're building a GPT basically it has your name and then if you have a special domain you can set it up here we're not going to mess with any of that all right so now it's your turn you have three different things to do the first thing is go in and actually update your custom instructions the second thing to do is go into settings and beta and then under beta feature enable both plugins and Advanced Data analysis and the last thing is to decide whether you're going to keep your chat history and training if you're not comfortable with it turn it off all right with that I'll see you in the next one all right in this video we're going to be talking about how chat GPT can now see images and this actually has a very unique use case for data analytics we're not going to be just using it to analyze some cute pictures instead we're going to going actually be using this Vision capability to analyze data so let's jump in so here I am in chat gbt and I using the most advanced model at the time GPT 4 now because we're using this most advanced model we can see down at the bottom we have this little attach an icon that we can actually open up and then from there upload a file if I were to change this to that gbt 3.5 that goes away you can't do it so we need to be in the most highest and greatest model in addition to this this model ALS also has built into it Dolly web browsing and that Advanced Data analysis so a lot of features packed into this anyway I have some images that I wanted to analyze instead of using that attachment thing I'm just going to go ahead and drag it right into here after it's done loading all I'm going do is press enter and Chachi BT analyzes it it's pretty interesting with this right it goes on into saying hey it looks like it's a Cena coding in Python which is really interesting because it's actually able to not only look at this image but also apparently read it apparently either from the laptop or the actual python logo right here in the top left hand corner now we're not going to be looking at cute panda piics for this we're going to be having actually a unique use case for data analytics so I prompted Chad gbt hey make me a graph in Python and it asked me some more contents about it I said hey make it a bar chart with various numbers give it random numbers and make it about something funny anyway it provided me this graph right here now I want Chachi BT to actually look at this graph and analyze it so I prompted it sweet I want you to actually read this graph and tell me the insides from it cuz remember it looked at that Panda pick it should be able to look at this and it first provided generic results without actually any insights from this graph I kept on trying to prompt it further and eventually got to the point where I asked it can you actually view this graph and it says since I'm unable to visually interpret imagees graph I can't directly read or analyze the specific details now once again we're getting into limitations of chat gbt you have to be aware of it can read this graph I can actually come up here and copy this image and come down into the chat press contrl V press enter and have it upload to actually interpret it and in this example it's about superheroes which is ranked from Superman down to Spider-Man and it actually pinpoints where these superheroes fall on this graph so let's get into more of a real use case of data analytics so I have a graph I want to analyze in it we have four bar charts and therefore the four major roles in data science data Engineers scientists analysts and even business analysts in it it shows the top 10 most in demand skills for each one of these roles and gives a percentage based on How likely it is to appear in a job posting now this graph is great but it's a little hard to interpret I'm trying to understand how these skills relate across the different roles and I could go through one by one and trying to analyze and compare this but that's going to take me quite a bit of time so I just paste this image into chbt like I did previously that Panda pick and it gets to town analyzing this in it it identifies four main types of skill first for python it basically identifies that data engineers and data scientists have the Samo for SQL it says all skills are actually requesting this for cloud platforms once again that goes to that data science and engineering roles and finally it wraps it up with data Vis tools where it says things like tableau powerbi are most prominent in data analyst and business analyst and then it finally gives me that summary that I was actually looking for basically data engineers and data scientists are the most similar when it comes to sales and then data analyst and business analysts also follow some similarities as well so this analysis would have normally taken me minutes if not hours to do and now I just got this in a matter of seconds so I'm really blown away by this feature of Chachi BT now there's also another unique use case of this and that's in interpreting graphs you may not understand or be familiar with take this one for example this is a box plot of different data science salaries not everybody's going to be able to read this you yourself may not even be able to read this so you can take it and feed it in and I did in this case prompted it explain this graph to me like I'm 5 years old and it goes into explain it using a color box related analogy now you could change it up on what kind of analogy or how you want to explain it to you but I think this is a great use case especially anytime you're going through this course or in real world and you're not sure of how to read a visualization or what to interpret from it you just feed it in and you'll get the insights back from chat gbt and also we're not just limited to interpreting graphs or visualizations we can also use it to interpret data models so here's a screenshot of a data model inside of powerbi and it shows how all these different tables are related now let's say I needed to run a SQL query along this database quering across the sales territory to sales order to date table I could just throw this image into chat BT provided the prompt of I want to analyze the sales order across different sales territories on a monthly basis and it goes to town actually providing me this SQL query with the names of the tables and the columns necessary to get my results that I need this is just mindblowing to me all right so now it's your turn I included a bunch of images below feel free to go through and actually upload each one of these images into chat PT and see what results you get from it and actually analyzing data and even these data models all right that see you in the next one hey you enjoying this video if so you may enjoy my course on using chat gbt for data analytics as this video here is only 1 hour of that 6 hours of video content for that course so before we get into using that Advanced Data analysis is feature within chat GPT let's take a sneak peek at the course welcome to my course on how I use chat GPT for data analytics this thing saves me up to 20 hours a week I use it for everything from analyzing spreadsheets to make some in-depth visualizations to even bigger tasks like connecting it to SQL databases and running complex calculations including machine learning and this course bundles up all my best practices for using Chachi BT the most popular tool of data nerds as my own personal data analytics ass assistent in the first half we'll break down the fundamentals of chat gbt we'll start at the very Basics focusing on things like data collection and cleaning and then move on to more advanced topics like web scraping and machine learning we'll do this all with short videos from me showing you my exact process and then step-by-step exercises following this to reinforce your learnings and the best way to learn anything is by building with it so in the second half of this course we're going to be focus on building a portfolio project specifically working on a real world example solving a problem for my app datan nerd. te we're going to be connecting to the app SQL database that has data science job postings in order to uncover the top skills of data nerds we'll be using Chachi BT to dive into this data by having it instead of us write the SQL and python code to analyze this for the final results we'll be putting it into a GitHub repository that you'll be able to show all the different insights you found in fact you can see what I did for my final project here and don't worry if you're a complete beginner new to data analytics or don't even know how to code is we're going to be using cat gbt to handle all of this for us and this is the course I wish I would have had when I first started in data analytics as now somebody with no experience can get started analyzing data from day one while also saving a buttload of time a recent study from Harvard found that those who use chat gbt first those that don't completed tasks 25% faster with a 40% increase in quality so that 20 hours I save a week I feel is realistic for your expectations as well anyway if you get stuck at any point during in the course I not only have a custom chatbot built on daa J jbt that can help you but also I'll be answering all your questions directly inside the course all right with that I'll see you in there dad nerds in this chapter we're going to be going over the Advanced Data analysis plugin and this plugin is by far one of the most powerful that I've seen within chat GPT and one of its capabilities is that you can upload files to the chatbot in order for it to connect to it analyze it and then provide insight one minor little bug that I'm finding though is that because you can upload these files to chat gbt is that the environment that it's running the python code and that it's storing these files will sometimes time out and you'll get a warning message saying that the advanced data analyst beta chat has timed out you may continue the conversation but previous files links and code blocks below may not work as expected and so overall I found that all that you have to do is go back in and whatever file that we were using previously you just put that file back into the chat and it picks back up where it left off so it recalls everything all the analysis that we did previously so you don't have to worry about that so you will be prompted from time to time especially if you go away from the chat or come back to it at another time to have to re-upload any uh files that we were using I do expect chat gbt to fix this issue especially with the rise in popular of it um not sure how they're going to do this or when they're going to do this don't have information on that but hopefully they do in the future and then I can get rid of this video in the chapter and you'll never see it again all right see you in the next one dead nerds welcome to this chapter on the Advanced Data analysis plug-in in this we're going to be walking through a typical example of how I use this plugin in my job as a data analyst we're going be walking through exploring a data set on data science job postings to extract insight from it first we're going to start by downloading and importing this data set into it and having chat gbt read it next we'll have it explore it and find some data that probably needs to be cleaned up so we'll have chat gbt handle this as well from there we'll be diving into performing some basic statistics and also exploratory data analysis to extract out some visualizations to help us learn more about this data set finally we're going to wrap it up with my favorite part of machine learning and we're going to actually be using the data inside of this data set in order to predict salary because we're going to have salary in this job posting so we'll be able to use the attributes of this data in order to predict that really excited about this portion one quick disclaimer on the knowledge level required for this don't worry too much if you don't know a lot about what Eda is what machine learning is we're going to actually go deeper into this in another chapter but for now I'm going to give you what the basics you need to know in order to use this plugin for each one of these chapters make sure that you're actually checking below cuz I'm going have a link to the data set I'll also have all the prompts in the description in addition I'll be including a link to my chat gbt history so you can go in and also check out to see how I went about analyzing this data set one note um right now chbt doesn't have the ability to share images so any graphs or images that I generate in these links that I share with you you're not going to be able to see it but you'll be able to see the prompts and the response from chat tot and I think that's good enough all right as me talking let's actually dive into this chapter all right in this video we're going to be doing an intro to Advanced Data analysis and before this we're going to be doing a comparison between using chat gbt without this functionality and chat gbt with this functionality so you really understand how it truly works one note about future videos you may hear me refer to this as the Advanced Data analysis plug-in and that's because previously before chat gbt updated this was a separate type of feature that you had to actually activate and you could only use this within a chat but now it's pretty great because you get to use Advanced Data analysis also called analysis here or data analysis within a single chat in addition to things like web browsing and generating images with Dolly so from time to time in upcoming videos you may notice the UI that you're dealing with isn't the same as the UI that I have I've gone through all the different videos and verify that still the same chat that I input in chat GPT produces the same results so you should be getting the same exact results even if that UI is different all right let's get into it one recap from the last video is to make sure that you have custom instructions set up for your context or use case right so for me in custom instructions I have that I'm a YouTuber making entertaining videos for those who work with data so that way chbt understands what kind of results I want I could think of an example example for maybe like a business student to have something like I'm a business student specializing Finance I'm interested in finding insights within the financial industry so that would better shape the students abilities to get prompts so just make sure that that's filled in because this is going to be the context that just provided to chat gbt in order to get the best most optimal results we need to have that with these instructions be as specific as you can right now it's about a 1500 character limit so feel free to go wild and fill it up with as much details as possible I found that you're only going to get better results with more context so let's get into performing some data analysis and for this we're going to be do a comparison comparing that gp4 model currently that has analysis included to GPT 35 without data analysis so starting with gbt 3.5 first so I prompted it with this analytical question 10 data nerds are on LinkedIn 50% of them are unemployed each appli to approximately two jobs how many jobs jobs were applied to so doing this mental math in my head we know that 10 jobs probably should be applied to so let's check it out and chat gbt gets it right so you're probably like Luke hey this base model without Advanced Data analysis included can do math well not so fast let's actually do a more complex problem in it I'm going to have a similar word example this time I have much bigger and more complex numbers let's see what the results are I don't know why chat gbt did all these emojis this is getting a little bit crazy I'm hoping that's going to stop soon what is going on and it stopped okay so it says that based on this 57 million jobs were applied to and you didn't know any better that probably looks correct but let's actually double check it and using a calculator we can see that although chat gbt was close it's actually not correct it's actually off by looks like close to 100,000 so what happened here why did chat gbt come up with this value that was actually pretty close to what the value should have been well with chat gbt we're working with a large language model and really these type of models are great at predicting the next word in a sentence take for example this I have Chach BT fill in the blank for this of Jack and Jill went up the blank you can probably guess what it's going to be if you're from America and you know nursy Rhymes it's going to say Hill well they showed an emoji available but let's actually ask the for the word okay uh so we are confirming the word to fill in the blank ishale similarly this filling in the blank of the next word in the sentence it can do this with math problems as well look at this one right here of fill in the blank of this next sentence 2 plus blank equals blank in my mind I kind of know what this is going to already do it's going to do 2 + 2 = 4 let's try it out yep and it did 2 + 2 equal 4 so in this case with this gbt 3.5 model that's what it's doing here it's using its General know knowledge of what it should predict for the best word that come out next in a sentence and using that to provide us a value in this case which is not very accurate for data analytics so that's why anytime we're doing any type of analysis in here we want to make sure we're using a model that has Advanced Data analysis let's see how to actually make sure that you're using it the first way you need to make sure that you're actually having enabled is going to the beta features and ensuring that Advanced Data analysis is turned on from from there there's multiple different ways you can access it I can come up here and start a new chat by clicking chat GPT and then from here actually select this model of GPT 4 right now which has Dolly browsing and Analysis so I can just click it and enable it now they also have this gbt called Data analysis if you don't have it in your menu you can actually go to explore and actually see it right here and add it anyway this GPT itself only includes that Advanced Data analysis functionality it doesn't include web browsing or Dolly image generation and all that kind of stuff so I think it's kind of limited I don't actually recommend using this anytime you're using it I recommend going to chat gbt and then using the most advanced model and selecting it with analysis so let's plug in that same exact complex word problem that we had from before and see what Chachi BT does so first it goes through and identifies basically all the different variables it needs to use and then it starts actually analyzing it that's when it's when it showed just there is when it's going to be using that Advanced Data analysis functionality now it tells us that the value is this 57.6 million which according to the calculator is exactly correct so how did I actually get this result well I can click here at the end of this sentence and go to view analysis and it shows me the python code that it's actually executing here and let's walk through this code real quick first it identifies all the different variables we need for this has things like the total data nerds the unemployment rate and then the applications per person underneath it it starts getting to work calculating the total applications which is the total data nerds time the employment rate times applications per person to get the final one and we can see the results right down here at the bottom if I wanted to I can even copy the code and put it into my own python environment and execute it but I sort of like this because python is executed right here inside of chat gbt and you get your results and you know it's accurate because you can see it so what all can be done with this feature of Advanced Data analysis well let's ask it and it goes into a lot of the things that we're actually going to be covering in this chapter specifically talks about we can do things like data analysis statistical analysis data processing predictive modeling and even going into things like data interpretation and custom queries so a lot of things the core things that I do as a data analyst this functionality of Chad gbt can also do all right so I'm excited to jump into this to explore more about how we're going to use this in this this chapter for you for your task for this I'm going to have you going through and actually quiz chbt on the same prompt asking it what it can do with this feature because in the next video we're going to be diving into importing data I want you to also ask it what type of files can you import into this and use inside of it all right with that I'll see you in the next one in this video we're going to be going over connecting to data sources specifically we're going to go to import a data set that we're going to get from online and then we're going to do some brief analysis of it so for your homework you should have prompted chbt to find out what type of file types it accepts I did this initially and it only provided three of CSV Excel and Json which is pretty neat that it does all of these things um but I knew that it could import more so you have to always be very specific and I provided at another prompt to then provide me a more thorough list of the file types and it listed a lot more so just databases uh SPSS SAS files HTML so it takes a lot of different files and this is great for us data analyst so let's get into uploading some data and then analyzing it I think I have the perfect data set for this so if you go to the link below it links you to my kaggle site where I've hosted a data set on data analyst job postings kaggle is a great site in order to get data sets because you can go through and search different ones then also it tells you a description and shows you some overall summary statistics about the data set itself so it's it's really useful and you can also see some stuff around uh what other people are doing right so we're going to download this data set and after we do that we're going to find that it downloads it into a zip file zip file just means that it's a file that they compress down and so zip file is fine it's actually better because it makes it smaller we're we going to upload this file into the Advanced Data analysis plugin so I'm not even going to provide any instructions I'm just going to press enter and have it upload and see what chat gbt says back and it identified that it's a zip file as it should and it extracted the contents of that in it it found that we have a CSV or basically like a text file where everything's separated by commas and so now it's asking what we want to do next for data analysis and I want to find out more about this data set specifically I just want to find out what are The Columns of the data set maybe a description of each one of these columns and so because we've already provided that context VI our custom instructions I then provided the task of tell me more about this data set for each column give a brief description so now it's providing each of these columns along with a brief detail and as mentioned before this is job postings and so it has a lot of key information from that job posting such as the company name name the location description or job description and then most notably things like salary where we have like hourly Sly yearly they also have minmax average and we'll get into all that in a little bit so your task now is to go to kaggle download that data set and then upload it into the Advanced Data analysis plugin from there ask it about the columns and the data set and we're going to be jumping into some descriptive statistics next so feel free to also jump into that and start looking around at different statistics of the columns all right see you in the next one in this video we're going to be exploring that data set that you should have downloaded from kaggle and then uploaded into chat gbt via the Advanced Data analysis plugin for this analysis we're going to be doing some uh analysis with descriptive statistics and then also with exploratory data analysis so I'm just going to start with a simple prompt of perform descriptive statistics on each column so in my case it initially tried to provide some of these descriptive statistics and what I mean by that is things like the count how many rows it has the mean or average standard deviation what's the minimum value what's the maximum value that's for numerical columns for categorical columns such as like the job title it has things like how many values are unique so there's 11,000 different unique ones with a top result of data analyst um as we' expect from this data now it's only able to do a little bit and so I prompted it further to do the entire data set and it says it needs to do smaller parts for easier viewing and so I'm actually going to refine this prompt further to get the data better how I want because right now it's providing it in a bullet format I don't really like that I think it'd be better to have a table format so I prompt it to still perform descriptive statistics on each column but also for this group numeric and non-numeric columns such as those categorical columns into different tables with each column as a row this hack to get these values in a table value makes it to where you can actually see and better understand these results and it was it's something that I was expect to get as a data analyst so for these numerical columns we have quite a few we can see it is has a lot of data around the salary average min max hour L early we'll dive in that further but I want to call out this first if you're not familiar with python is that the first one called unnam zero whenever there's not a column title python will give it this name of unnamed zero so that's basically like the index we already have an index in it both those columns aren't really useful for us in our case for the non-numerical columns it looks like it went into a lot of the different ones that I really care about title company name uh the job platform and description but it didn't do all of them so I'm actually going to prompt it to go further in those all right so now I can go through and actually see each one of these non-numerical columns get a better idea of how many counts they have if they have any missing values such as the salary column it looks like only about 5,000 values are there while there are a total of around 29.5 th000 job postings so that's just something to note with this data set um we can see all these different top things and frequency so this is some really good descriptive statistics that's provided in a very convenient way to see it after descriptive statistics the next thing that I'd like to get into is exploratory data analysis and exploratory data analysis is a way to visualize a lot of these descriptive statistics in a way that I can actually see visually via graphs such as histograms or bar charts so I'm going to prompt chat gbt to perform some of this Eda and I provide it with perform exploratory data analysis on each of these columns provide an appropriate visualization to repr present the content of each column for example use a histogram for numerical columns and the results from this are really interesting because now we get a dive and to see like what's in this data set itself the first one that gives us is the title so what is the job title itself that's being presented in this job posting and for data analysts in the United States we expect to see data analyst number one but also maybe some data scientists um and it looks like data Engineers even F this as well um other things have like company upwork look like they're going crazy with job postings job locations anywhere looks to be like a very common one along with United States um also looks like we probably will need to do some data cleaning for this location and then the Via which is like the job platform has things like oh looks like LinkedIn is like the major provider of job postings for this data set then we have upwork and BB um and then it asks us to dive deeper into more columns all right so now it's time for your task you're going to go in and similar to me you're can perform those descriptive statistics I recommend having it output in that table like format and then move it into exploratory data analysis it's probably going to do the same where it only provides you a few charts at a time but keep iterating through to get more familiar with this data set and understand what we're working with in the next video we're going to get into cleaning up these values before we get into further visualizing all right see you in the next one hey hope you're liking the tutorial if so you may like my cheat sheet on using chat gbt for data analytics which you can get by going to my website and signing up for my newsletter all right that let's get back into it in this video we're going to be going over data cleanup so previously you should have done the descriptive statistics to find out more about the data set itself and then jumped into an exploratory data analysis of each one of those columns to understand what's actually in this data set and with that in mind of going through it we wanted to find what type of columns we need to focus on for the data clean up right now there's two main ones that came to mind that we identified in the last video that we're going to clean up in this video the f
Original Description
⚠️ Update⚠️ The full course is now available for FREE 👉 https://youtu.be/uhyMqbZI6rM
(If you watched this full video, then skip over to 1:03:27 in that video)
Resources Mentioned in this Video
==================================
💬 ChatGPT Chat History: https://lukeb.co/chat_ada
💽 Kaggle Job Posting Data Set: https://lukeb.co/FreeData
🤖 Course Chatbot: https://lukeb.co/chatgpt_chatbot
📝 Sign up for ChatGPT cheat sheet: https://lukebarousse.com/
🌠 Pictures for Image Exercise: https://lukeb.co/chatgpt_images
Other Courses for Data Nerds
==================================
📜 Google Data Analytics Certificate 👉🏼 https://lukeb.co/GoogleCert
🐍 Python for Everybody 👉🏼 https://lukeb.co/PythonForEverybody
💿 SQL for Data Science 👉🏼 https://lukeb.co/SQLdataScience
🧾 Excel Skills for Business 👉🏼 https://lukeb.co/ExcelBusinessAnalyst
📈 PowerBI for Data Viz 👉🏼 https://lukeb.co/powerbi-cert
📊 Tableau for Data Viz 👉🏼 https://lukeb.co/Tableau_UCDavis
🏴☠️ Data Science: Foundations using R 👉🏼 https://lukeb.co/RforDataScienceJH
➕ Coursera Plus Subscription (7-day free trial) 👉🏼 https://lukeb.co/CourseraPlus
👨🏼🏫 All courses 👉🏼 https://kit.co/lukebarousse/data-analytics-courses
Books for Data Nerds
==================================
📚 Books I’ve read 👉🏼 https://kit.co/lukebarousse/book-recommendations
📗 Data Analyst Must Read 👉🏼 https://geni.us/StorytellingWithData
Tech for Data Nerds
==================================
⚙️ Tech I use 👉🏼 https://kit.co/lukebarousse/computer-accessories
🪟Windows Virtual Machine for Mac (Parallels) 👉🏼 https://lukeb.co/ParallelsFreeTrial
Social Media / Contact Me
======================
👾 r/DataNerd 👉🏼 https://www.reddit.com/r/DataNerd/
🌄 Instagram: https://www.instagram.com/lukebarousse/
⏰ TikTok: https://www.tiktok.com/@lukebarousse
📘 Facebook: https://www.facebook.com/datavizbyluke
🙋🏼♂️Newsletter: https://www.lukebarousse.com/
As an Amazon, Coursera, and Parallels Affiliate Programs member, I ear
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Luke Barousse · Luke Barousse · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Connect Google Sheets to Tableau & Joining Data - Tableau Tutorial P.1
Luke Barousse
How To Use Tableau Desktop Controls - Tableau Tutorial P.2
Luke Barousse
Dimensions Vs Measures (Blue Vs Green Data) - Tableau Tutorial P.3
Luke Barousse
Create Stacked Bar Chart (and any other visuals EASILY!) w/ Show Me! - Tableau Tutorial P.4
Luke Barousse
Conditional Format Tables in Tableau (Like Excel!) - Tableau Tutorial P.5
Luke Barousse
Calculated Fields in Tableau (Formulas & IF Statements) - Tableau Tutorial P.6
Luke Barousse
Parameters (Create & Use in Calculated Fields and/or Visuals) - Tableau Tutorial P.7
Luke Barousse
Totals, Average Lines, & Trend Lines (Analytics Pane) - Tableau Tutorial P.8
Luke Barousse
How To Create a Dashboard - Tableau Tutorial P.9
Luke Barousse
Upload your dashboard to Tableau Public - Tableau Tutorial P.10
Luke Barousse
Install Python for Data Science on Mac & Windows (PC) with Anaconda - P.1
Luke Barousse
How to run Python for Data Science - Editors vs IDEs - P.2
Luke Barousse
Install VS Code with Python for Data Science / Data Analysis - P.3
Luke Barousse
Understanding Virtual Environments for Data Science / Data Analysis - P.4
Luke Barousse
Using VS Code with Python for Data Science / Data Analysis - P.5
Luke Barousse
Python for Data Science / Analysis ft. 'The Office' Dataset - P.0
Luke Barousse
Python Objects frequently used in Data Science / Data Analysis - P.1
Luke Barousse
Python If Statements for Data Science / Data Analysis - P.2
Luke Barousse
Python For & While Loops for Data Science / Data Analysis - P.3
Luke Barousse
Python List Comprehension for Data Science / Data Analysis - P.4
Luke Barousse
Python Functions for Data Science / Data Analysis - P.5
Luke Barousse
Lambda Functions for Data Science / Data Analysis - Python P.6
Luke Barousse
How NOT to learn Python for Data Science
Luke Barousse
What is Business Intelligence (BI)? 📊😅
Luke Barousse
Top 3️⃣ Technical Skills for Business Intelligence 📚📊
Luke Barousse
Top Non-technical Skills for Business Intelligence 📊👨🏼💻
Luke Barousse
M1 vs Intel Mac for Data Science
Luke Barousse
M1 vs Intel Mac for Excel 📈👨🏼💻
Luke Barousse
M1 vs Intel Mac for Python 🐍👨🏼💻
Luke Barousse
M1 vs Intel Mac for Business Intelligence Tools 💻📊
Luke Barousse
M1 Macbook Air vs Pro (8 vs 16 GB) for Data Science
Luke Barousse
Python for M1 Mac vs Intel (SPOILER: M1 is 2x faster)
Luke Barousse
Data Analyst's WFH Setup & Upgrades
Luke Barousse
Windows on the M1 Mac - What are your options?
Luke Barousse
Install your favorite Windows app on M1 Mac - ft. Parallels
Luke Barousse
Data Science shortcuts for Mac
Luke Barousse
Day in the life of a data analyst
Luke Barousse
Power BI vs Tableau - Best BI Tool
Luke Barousse
Mac Vs PC - BEST for Data Science
Luke Barousse
Data Scientist vs Data Analyst (funny!)
Luke Barousse
Become a DATA ANALYST with NO degree?!? The Google Data Analytics Professional Certificate
Luke Barousse
Certificates vs Degree for Data Analysts (ft. Google Data Analytics Professional Certificate)
Luke Barousse
Google vs IBM Data Analyst Certificate - BEST Certificate for Data Analysts
Luke Barousse
Python Vs R (funny!)
Luke Barousse
THIS got me my job as a Data Analyst - My portfolio tip
Luke Barousse
I used Python to Count my Bike Jumps!
Luke Barousse
Standout as a Data Analyst with THIS TOOL
Luke Barousse
STOP using Spreadsheets for Everything!
Luke Barousse
Transition into Data Science - My Tips & Story
Luke Barousse
Get a JOB w/ Google Data Analytics Certificate?!? (ft. Certificate Holders)
Luke Barousse
Staying Motivated in Data Science
Luke Barousse
Data Science - Expectation vs Reality (funny!) - ft. @KenJee_ds
Luke Barousse
Get NOTICED in Data Science!!! (3 types of GREAT projects)
Luke Barousse
Use THIS to showcase EXPERIENCE in Data Science
Luke Barousse
How to show EXPERIENCE... when you have NONE?!?
Luke Barousse
Learn PYTHON to be a DATA ANALYST?!? (or is R enough...)
Luke Barousse
The BIGGEST MISTAKE when starting a data project!
Luke Barousse
Top Jobs in Data Science
Luke Barousse
How to get Data Analytics side jobs - NEW LinkedIn Feature
Luke Barousse
Building a bot to scrape job data… How NOT to collect data
Luke Barousse
More on: ML for Analytics
View skill →Related Reads
📰
📰
📰
📰
Job Hunting? Free Data Tools for Salary, Certification, and Visa Research
Dev.to · datapeek
Python for Data Science — Sampling and Why Your Conclusions Can Be Wrong
Medium · Data Science
Sleep-stage detection is mostly inference. Be honest about it.
Dev.to · SleepTrace
Data Science Institute in Tilak Nagar — AI, ML & Python Training
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI