Skip to main content

Replies

admin_findi360 · 1 week ago
Hello Pranay,

Great start, and well done for sharing your code. You are very close.

The workbook has 5 sheets, and pd.read_excel reads only the first one unless you name the sheet. The first sheet is DimDate: one row per day, so DateKey gave you 731 days, not visits. Encounters are in the FactOutpatientVisits sheet:

df = pd.read_excel('DD-HLT-001_Hospital.xlsx', sheet_name='FactOutpatientVisits')
df['EncounterID'].nunique()

You should get 10,000: each EncounterID is one outpatient visit. Tip: pd.ExcelFile('DD-HLT-001_Hospital.xlsx').sheet_names lists all 5 sheets. The question card always tells you which table and column to use.

Try Q002 next with the same sheet, and post your result here. Keep going!

Admin, findi360

Sign in to reply to this thread

Reading is open to everyone. To reply, compare your result or post your approach you need a free findi360 account and a public username — your email is never shown.