Skip to content

featurebyte.View.preview

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

Description

Returns a DataFrame that contains a selection of rows of the view. 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 view.

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