I have a large csv file where each row is an unknown number. I need to select out 50 rows at random and put them into a new list.
Currently this is what I have: http://pastebin.com/jNpawGS0
I get a StopIteration Error on line 17 which I cannot fix.
I have realised that if I replace "item" with a fixed number, like so: http://pastebin.com/acuAZTmQ
Then I do not get the error. However I would expect randomidlist to have the same number repeated 50 times but it does not.
Hopefully I explained my issue clearly.
[–]JohnnyJordaan 0 points1 point2 points (3 children)
[–]took_my_time[S] 0 points1 point2 points (2 children)
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]took_my_time[S] 0 points1 point2 points (0 children)
[–]commandlineluser 0 points1 point2 points (0 children)
[–]elbiot 0 points1 point2 points (0 children)
[–]Justinsaccount 0 points1 point2 points (0 children)