GPT 4o + Canvas + o1 preview — Data Analysis Just Took a Quantum Leap!
Last Updated on October 31, 2024 by Editorial Team
Author(s): Gencay I.
Originally published on Towards AI.
Let’s Analyze the Dataset by using this combination
This member-only story is on us. Upgrade to access all of Medium.
Created with Abidin Dino AI, to reach it, consider being Paid subscriber to LearnAIWithMe, hereOpenAI has been consistently publishing different models to meet our diverse needs. But what if we used them for the same purposes in different windows?In this example, we will unlock the full potential of their models for data analysis. To do that, let’s use a real-life dataset from Kaggle.
ReferenceFor this article, we are going to use the International football results dataset. You can see the Kaggle link to this dataset here.
After downloading the dataset, you’ll see three different datasets. You can also load it using code.
import kagglehub# Download latest versionpath = kagglehub.dataset_download("martj42/international-football-results-from-1872-to-2017")print("Path to dataset files:", path)
After running this code, you will see that this will be loaded to your local environment. Use the following code to see where it has been loaded;
files = os.listdir(path)print("Files in dataset:", files)
Here is my output.
SS of the outputIt is time to load these into data frames, so let’s start Data exploration. Here is the code to load the dataset.
import pandas as pdimport osimport kagglehub# Download the latest version of the datasetpath = kagglehub.dataset_download("martj42/international-football-results-from-1872-to-2017")# Specify file namesfiles = ['goalscorers.csv', 'shootouts.csv', 'results.csv']#… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.
Published via Towards AI