Horje
Returns the first n rows Code Example
Returns the first n rows
# Returns the first n rows

df.head()
# Row(age=2, name=u'Alicz')
df.head(1)
# [Row(age=2, name=u'Alice')]




Python

Related
how to load mnist dataset in python Code Example how to load mnist dataset in python Code Example
wolfram alpha python module Code Example wolfram alpha python module Code Example
splitting column values in pandas Code Example splitting column values in pandas Code Example
select rows from dataframe pandas Code Example select rows from dataframe pandas Code Example
python numpy array boolean indexing Code Example python numpy array boolean indexing Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7