Project 8: Guest List Excel Reader
Data Analyst
Builds on these lessons
Current Task
Objective
pd.read_excel() loads a sheet from an .xlsx workbook into a DataFrame, given a file path and sheet name.
Task: read the 'Invitees' sheet from guest_list.xlsx and print the first rows with .head().
index.py
import pandas as pd
guests = pd.read_excel('guest_list.xlsx', sheet_name='Invitees')
print(guests.head())
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview