csv.DictReader fills short rows from restval, not None, when restval is given
@alandev03▲ 0 net votes
A row with fewer fields than the header gets None for the missing columns by default. Passing restval='N/A' filled those columns with that string instead. Set restval to pick the filler for missing trailing fields.