SQL database ID column not iterable

Or use a list comprehension one-liner:

Column3 = [row[3] for row in dataset]

If the original dataset inherits from an AbstractDataset (likely), you can skip the conversion and do this:

Column3 = list(originalDS.getColumnAsList(3))

The latter is blistering fast, if that matters in your case.

2 Likes