Reading Datasets, getRowIndex

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

this worked, thank you

Gasp! My feelings would be hurt if I didn't have such a huge ego. :crazy_face:

2 Likes

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. :laughing:

For pretty printing a dataset:

2 Likes