It looks like the structure of output data isn't what was expected by the function. colnames is, as expected, a list of column names, while output is a list of lists containing the values to be packed into the columns. For some reason, the column 'tsn' (always? often? sometimes?) begins with a spurious None, which causes dict(zip( colnames, output ) ) to fail.
It looks like the structure of output data isn't what was expected by the function.
colnames
is, as expected, a list of column names, whileoutput
is a list of lists containing the values to be packed into the columns. For some reason, the column 'tsn' (always? often? sometimes?) begins with a spuriousNone
, which causesdict(zip( colnames, output ) )
to fail.