bodo.pandas.BodoSeries.head¶
Returns the first n rows of the BodoSeries.
Parameters
-
n : int, default 5: Number of elements to select.
Returns
-
BodoSeries
Example
import bodo.pandas as bd
bdf = bd.DataFrame(
{
"A": bd.array([1, 2, 3, 7] * 3, "Int64"),
}
)
bodo_ser_head = bdf.A.head(3)
print(type(bodo_ser_head))
print(bodo_ser_head)
Output: