lrose
21
Use this if you want to print out all of the columns:
print [dataset[rowIndex][col] for col in dataset[rowIndex]]
or use one of these for a specific column
print dataset[rowIndex]['columnName']
print dataset[rowIndex][colIndex] #where colIndex is a zero based integer
3 Likes
Gasp! My feelings would be hurt if I didn't have such a huge ego.
2 Likes
lrose
24
If I had thought that the actual need was to pretty print the dataset, there would have been a big ol' arrow pointed right at that post.
For pretty printing a dataset:
2 Likes