As user jon141: I also run into this problem, and I am trying to solve this by going through one element of the column (I go through a 2-dimensional array) and then building a row based on this. So I get a string like
template="{0!s:10}{1!s:15}...{n!s:24}
Elements that I want to format, I put in a tuple. but when i do
template.format(tuple_variable)
it gives an error that the tuple index is out of range
Probably because now it passes the tuple of the tuple to a function having one element, the tuple
I have not figured out how to fix this yet, but follow thread if you need more information about this.
oneindelijk
source share