From the course: Hands-On Generative AI: Applying Your Tabular Data With ChatGPT, GPT-4, and LangChain
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Load data into LangChain - ChatGPT Tutorial
From the course: Hands-On Generative AI: Applying Your Tabular Data With ChatGPT, GPT-4, and LangChain
Load data into LangChain
- [Instructor] Before introducing our data to ChatGPT, let's take a quick look at the dataset. Click the upload button on the top left to upload the CSV file, conference session info. You can find this dataset in the exercise files. Now let's import the Pandas package. Import pandas as pd. We need to make sure we can see all the text data in our columns no matter how long it is. So let's set column widths to maximum so we don't see truncated data. Pd.set option, display max column width. Cool. It's like seeing the entire picture without any cropping. The data set we load is conference_session_info.csv. Read it to a data frame with read_csv method. Nice. Now let's check the shape of the dataset. There are 30 rows, 8 columns. Check the first five rows with head method. This table has session information for a conference. There's a start date and an end date of the session. Also a session name, description, track,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.