Is there a way to transpose the contents of a table, in other words make the columns show as row headers and all the data be listed left to right for that header instead of top to bottom?
pyDS = system.dataset.toPyDataSet(ds)
l = [list(x) for x in pyDS] #convert to a list of lists
trList = [list(i) for i in zip(*l)]
newDS = system.dataset.toDataSet(trList[0], trList[1:]) #headers are the first row, the rest is data
You might have to use [str(z) for z in list(i)] instead of just list(i) depending on your data though. If that doesn’t work well for you you’ll probably have to go more in depth like @pturmel’s method. If its super simple stuff, this should work.