Skip to content

featurebyte.ViewColumn.preview

preview(
limit: int=10,
**kwargs: Any
) -> DataFrame

Description

Returns a DataFrame that contains a selection of rows of the view column. The materialization process occurs after any cleaning operations that were defined either at the table level or during the view's creation.

Parameters

  • limit: int
    default: 10
    Maximum number of return rows.

  • **kwargs: Any
    Additional keyword parameters.

Returns

  • DataFrame
    Preview rows of the data.

Examples

Preview 3 rows of a column.

>>> catalog.get_view("GROCERYPRODUCT")["GroceryProductGuid"].preview(3)
                     GroceryProductGuid
0  10355516-5582-4358-b5f9-6e1ea7d5dc9f
1  116c9284-2c41-446e-8eee-33901e0acdef
2  3a45a5e8-1b71-42e8-b84e-43ddaf692375