I want to create an Excel with dynamic columns for each row. So maybe the dictionary for rows contains 3 keys and for other rows, 5. Actually when some keys are missed in some rows the column is not being added. I don't know other rows because it's a cursor from a query, so I can't add keys with empty values.
Any solution?
I want to create an Excel with dynamic columns for each row. So maybe the dictionary for rows contains 3 keys and for other rows, 5. Actually when some keys are missed in some rows the column is not being added. I don't know other rows because it's a cursor from a query, so I can't add keys with empty values.
Any solution?