I love using the .head() and .tail() functions in pandas to circumstantially display a certain amount of rows (sometimes I want less, sometimes I w
.head()
.tail()
You could just use df.col.head(n) for what your are trying to do... see example below,
df = pd.DataFrame({'a': [i for i in range(101)], 'b': [i for i in range(101)]}) df.a.head(4) Out[37]: 0 0 1 1 2 2 3 3 Name: a, dtype: int64