# dask.dataframe.api.Rolling.quantile

#### Rolling.quantile(q, \*args, \*\*kwargs)

Calculate the rolling quantile.

This docstring was copied from pandas.api.typing.Rolling.quantile.

Some inconsistencies with the Dask version may exist.

* **Parameters:**
  **q**
  : Quantile to compute. 0 <= quantile <= 1.

  **interpolation**
  : This optional parameter specifies the interpolation method to use,
    when the desired quantile lies between two data points i and j:
    > * linear: i + (j - i) \* fraction, where fraction is the
    >   fractional part of the index surrounded by i and j.
    > * lower: i.
    > * higher: j.
    > * nearest: i or j whichever is nearest.
    > * midpoint: (i + j) / 2.

  **numeric_only**
  : Include only float, int, boolean columns.
* **Returns:**
  Series or DataFrame
  : Return type is the same as the original object with `np.float64` dtype.

#### SEE ALSO
`Series.rolling`
: Calling rolling with Series data.

`DataFrame.rolling`
: Calling rolling with DataFrames.

`Series.quantile`
: Aggregating quantile for Series.

`DataFrame.quantile`
: Aggregating quantile for DataFrame.

### Examples

```pycon
>>> s = pd.Series([1, 2, 3, 4])
>>> s.rolling(2).quantile(0.4, interpolation="lower")
0    NaN
1    1.0
2    2.0
3    3.0
dtype: float64
```

```pycon
>>> s.rolling(2).quantile(0.4, interpolation="midpoint")
0    NaN
1    1.5
2    2.5
3    3.5
dtype: float64
```

<!-- !! processed by numpydoc !! -->
