Commit e44cc53
Fix format2tidy KeyError by using dynamic column name
The pd.melt(df.T) call produces column names based on the DataFrame's
MultiIndex level names, which may not always be 'Subject'. This fix
dynamically retrieves the actual column name after melt instead of
hardcoding it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 37d27d7 commit e44cc53
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | | - | |
58 | | - | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
0 commit comments