When working with Pandas, I am trying to print an analysis of Kinematic and Angular objects. My code for this is as follows:
def displayData(tList, xList, zList, dxList, dzList, thetaList, dthetaList, Q_sList):
states = pd.DataFrame({ 't' : tList,
'x' : xList,
'z' : zList,
'dx' : dxList,
'dz' : dzList,
'theta' : thetaList,
'dtheta' : dthetaList,
'Q_s' : Q_sList})
print states[['t', 'x', 'z', 'dx', 'dz', 'theta', 'dtheta', 'Q_s']]
However, when requesting to print data, the output breaks the columns for a certain point:
t x z dx dz theta \
0 0.000 -500.000000 -100.000000 100.000000 -0.000000 0.000000
1 0.005 -499.500000 -100.000000 99.999983 0.057692 -0.000577
2 0.010 -499.000000 -99.999712 99.999933 0.115329 -0.001153
... ... ... ... ... ... ...
dtheta Q_s
0 -0.115385 -0.038462
1 -0.115274 -0.038425
2 -0.115163 -0.038388
... ... ...
Since I have many thousands of states to print at the time, I would like pandas not to split the table so that it allows me to analyze one given state without scrolling to select the remaining two data fields. Is there a way to determine the specific dimensions for printing so that this does not happen?
source
share