
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.
OpenAI 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.
For 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.
It 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
Take our 90+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!
Towards AI has published Building LLMs for Production—our 470+ page guide to mastering LLMs with practical projects and expert insights!

Discover Your Dream AI Career at Towards AI Jobs
Towards AI has built a jobs board tailored specifically to Machine Learning and Data Science Jobs and Skills. Our software searches for live AI jobs each hour, labels and categorises them and makes them easily searchable. Explore over 40,000 live jobs today with Towards AI Jobs!
Note: Content contains the views of the contributing authors and not Towards AI.