bodo.pandas.BodoDataFrame.head¶
Returns the first n rows of the BodoDataFrame.
Parameters
-
n : int, default 5: Number of rows to select.
Returns
-
BodoDataFrame
Example
import bodo.pandas as bd
original_df = bd.DataFrame(
{"foo": range(15), "bar": range(15, 30)}
)
original_df.to_parquet("example.pq")
restored_df = bd.read_parquet("example.pq")
restored_df_head = restored_df.head(2)
print(type(restored_df_head))
print(restored_df_head)
Output: