Suppose a Pandas dataframe looks like:
BoxRatio Thrust Velocity OnBalRun vwapGain
5 -0.163 -0.817 0.741 1.702 0.218
8 0.000 0.000 0.732 1.798 0.307
11 0.417 -0.298 2.036 4.107 1.793
13 0.054 -0.574 1.323 2.553 1.185
How can I extract the third row (as row3) as a pandas dataframe?
In other words, row3.shape
should be (1,5) and row3.head()
should be:
0.417 -0.298 2.036 4.107 1.793