You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEC cover records (F3X, F3, F3P) contain duplicate column names - certain fields appear twice at different positions (e.g. total_receipts appears as both a summary field and a computed total). libfec disambiguates these by appending _TODO_DUP to the second occurrence:
col_a_total_receipts (position 24) and col_a_total_receipts_TODO_DUP (position 45)
col_a_total_disbursements (position 24) and col_a_total_disbursements_TODO_DUP (position 66)
col_a_total_contributions and col_a_total_contributions_TODO_DUP
Same pattern for col_b_* variants
FastFEC uses the same column name for both positions, meaning the header row has duplicate column names. This makes FastFEC's output ambiguous when reading by column name rather than position.
6 column pairs affected per F3X filing, 12 total with col_a and col_b variants.
Note
Much of this ticket was composed with Claude
Description
FEC cover records (F3X, F3, F3P) contain duplicate column names - certain fields appear twice at different positions (e.g.
total_receiptsappears as both a summary field and a computed total). libfec disambiguates these by appending_TODO_DUPto the second occurrence:col_a_total_receipts(position 24) andcol_a_total_receipts_TODO_DUP(position 45)col_a_total_disbursements(position 24) andcol_a_total_disbursements_TODO_DUP(position 66)col_a_total_contributionsandcol_a_total_contributions_TODO_DUPcol_b_*variantsFastFEC uses the same column name for both positions, meaning the header row has duplicate column names. This makes FastFEC's output ambiguous when reading by column name rather than position.
6 column pairs affected per F3X filing, 12 total with col_a and col_b variants.
Affected Filing
Filing ID: 1935668 (237KB, Chevron PAC F3XN filing)
Reproduction
Observe the Difference
Decision
Options:
_TODO_DUPwith something cleaner like_2or_repeat_TODO_DUPsuffix prevents silent data confusion in column-name-based toolsThe
_TODO_DUPsuffix appears to be defined infec-parser-macroscolumn mapping files.