I have a list of lists that contains temperature data; however, sometimes a probe disconnects when I am trying to collect data and for example, pandas will complain:
ValueError: 5 columns passed, passed data had 4 columns
so if I have a list of list such as [[1, 2, 3], [1, 1, 1, 1, 1]] how can I make it such that the list becomes [[1, 2, 3, X, X], [1, 1, 1, 1, 1]] or if I had six sensors and the output was [[1, 1], [2, 2]] it becomes [[1, 1, X, X, X, X], [2, 2, X, X, X, X]].
In short, I would like to make each list the same size N and populate cells with an X
Edit: The fill will always occur at the end of the list