Introduction to Dataset, Task, and Using GenAI

Last updated on 2026-02-06 | Edit this page

Overview

Questions

  • FIXME

Objectives

  • FIXME

Introduction


FIXME

Challenge

Challenge 1: Entering a prompt to generate code

Enter into your LLM:

We want to write a python script that loads file
data.csv into a variable for further analysis.

Your output may differ from the output for other people.

OUTPUT

import pandas as pd

# Load the CSV file into a DataFrame
data = pd.read_csv("data.csv")

# Now 'data' holds your dataset with column names from the first row
print(data.head())   
Challenge

Challenge 2: what is the code you got doing?

  • which packages does it use?
  • which data type is used?

Challenge 3: Refine the prompt to ensure package pandas is used

Key Points
  • interact with an AI to generate code to use for their data analysis
  • Read to understand code generated by their prompt
  • interact with an AI to get explanations