---
title: experimental.preview() function
description: experimental.preview() limits the number of rows and tables in the stream.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/preview/
estimated_tokens: 748
product: Flux
version: v0
---

# experimental.preview() function

-   Flux 0.167.0+
-   View InfluxDB support

`experimental.preview()` is [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

`experimental.preview()` limits the number of rows and tables in the stream.

Included group keys are not deterministic and depends on the order that the engine sends them.

##### Function type signature

```js
(<-tables: stream[A], ?nrows: int, ?ntables: int) => stream[A] where A: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### nrows

Maximum number of rows per table to return. Default is `5`.

### ntables

Maximum number of tables to return. Default is `5`.

### tables

Input data. Default is piped-forward data (`<-`).

## Examples

### Preview data output

```js
import "experimental"
import "sampledata"

sampledata.int()
    |> experimental.preview()
```

[transformations](/flux/v0/tags/transformations/)
