Skip to main content
100%

Gist 59ae1a59826b5b7e09a35c922852cb2b

✓ Published0🌍 Public
Aakeshavan
Last edited Jan 5, 2018
Created on Jan 5, 2018

This example prepares and summarizes a dataset of brain MRI slice images. The notebook loads a metadata CSV into a pandas DataFrame and verifies that all referenced image files exist. It then groups the data by subject and slice direction, counting the number of slices for each binary label (0 or 1) with `groupby` and `apply`, before restructuring the result with `unstack`. The output is a cross-tabulated summary showing slice counts per subject, direction, and label.

AI-generated description

Similar vizzes