# dask.dataframe.DataFrame.all

#### DataFrame.all(axis=0, skipna=True, split_every=False, \*\*kwargs)

Return whether all elements are True, potentially over an axis.

This docstring was copied from pandas.DataFrame.all.

Some inconsistencies with the Dask version may exist.

Returns True unless there at least one element within a series or
along a Dataframe axis that is False or equivalent (e.g. zero or
empty).

* **Parameters:**
  **axis**
  : Indicate which axis or axes should be reduced. For Series this parameter
    is unused and defaults to 0.
    * 0 / ‘index’ : reduce the index, return a Series whose index is the
      original column labels.
    * 1 / ‘columns’ : reduce the columns, return a Series whose index is the
      original index.
    * None : reduce all axes, return a scalar.

  **bool_only**
  : Include only boolean columns. Not implemented for Series.

  **skipna**
  : Exclude NA/null values. If the entire row/column is NA and skipna is
    True, then the result will be True, as for an empty row/column.
    If skipna is False, NA values are treated as True for NumPy-backed
    dtypes (since they are not equal to zero). For nullable dtypes such
    as `boolean`, NA values propagate following
    [Kleene logic](https://pandas.pydata.org/pandas-docs/stable/user_guide/boolean.html#boolean-kleene).

  **\*\*kwargs**
  : Additional keywords have no effect but might be accepted for
    compatibility with NumPy. See [NumPy compatibility kwargs](https://pandas.pydata.org/pandas-docs/stable/user_guide/gotchas.html#gotchas-numpy-kwargs) for more.
* **Returns:**
  Series or scalar
  : If axis=None, then a scalar boolean is returned.
    Otherwise a Series is returned with index matching the index argument.

#### SEE ALSO
[`Series.all`](dask.dataframe.Series.all.html.md#dask.dataframe.Series.all)
: Return True if all elements are True.

[`DataFrame.any`](dask.dataframe.DataFrame.any.html.md#dask.dataframe.DataFrame.any)
: Return True if one (or more) elements are True.

### Examples

**Series**

```pycon
>>> pd.Series([True, True]).all()
True
>>> pd.Series([True, False]).all()
False
>>> pd.Series([], dtype="float64").all()
True
>>> pd.Series([np.nan]).all()
True
>>> pd.Series([np.nan]).all(skipna=False)
True
```

**DataFrames**

Create a DataFrame from a dictionary.

```pycon
>>> df = pd.DataFrame({"col1": [True, True], "col2": [True, False]})
>>> df
   col1   col2
0  True   True
1  True  False
```

Default behaviour checks if values in each column all return True.

```pycon
>>> df.all()
col1     True
col2    False
dtype: bool
```

Specify `axis='columns'` to check if values in each row all return True.

```pycon
>>> df.all(axis="columns")
0     True
1    False
dtype: bool
```

Or `axis=None` for whether every value is True.

```pycon
>>> df.all(axis=None)
False
```

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