Dec-30-2018, 09:35 PM
(Dec-30-2018, 08:43 PM)stullis Wrote: What error are you getting?
As for an explanation, the function accepts a list of sub-lists and transforms it. The transformation process (in the loop) takes the data in each sub-list for a specified index and aggregates them into a single list. Like so:
[[1,2,3],[1,2,3]] => [[1,1],[2,2],[3,3]]
This saves a lot of effort to change your data set into rows for the table.
Since i got that error from your code i tried a bit my self, and got below. But only gives me the first line, and since your code is working for me now, i stick to that :)
entries = len(date) t = PrettyTable(title) count = 1 while count <= entries: t.add_row( [date[0], day[0], week[0], season[0], team[0], oteam[0], site[0], points[0], opoints[0], line[0], total[0]]) if count == entries: break count +=1Just tried running your code again. And it worked perfect.. Have no idea what i did earlier today. :D
It looks great. Does exactly what i needed :)
How do i add a header column? Like sum.. Where i can add the points and opoints
Thanks for input stullis. Taking it all in and learning for future stuff :)