Commit adc798d
Fix pandas attrs comparison bug and add labels='short' to tutorial
## Issues Fixed
### 1. Pandas attrs comparison bug causing nlargest() to fail
- **Bug**: Storing DataFrame in attrs["census_vectors"] caused pandas to fail
when comparing attrs during operations like nlargest()
- **Error**: "ValueError: The truth value of a DataFrame is ambiguous"
- **Fix**: Store metadata as list of dicts instead of DataFrame in core.py:358
- **Fix**: Update label_vectors() to convert list back to DataFrame in vectors.py:53
### 2. Missing labels='short' in getting_started tutorial
- **Bug**: Tutorial code tried to access 'v_CA21_923' but columns had full labels
- **Error**: "KeyError: 'v_CA21_923'"
- **Fix**: Added labels='short' parameter in getting_started.md:160
## Build Results
- All tutorials now execute successfully ✅
- No execution errors in documentation build ✅
- Population density calculations work correctly ✅
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 64aeca7 commit adc798d
3 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments