Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Returns true if all values of col are true.
Syntax
from pyspark.sql import functions as sf
sf.every(col)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or column name |
Column to check if all values are true. |
Returns
pyspark.sql.Column: true if all values of col are true, false otherwise.
Examples
import pyspark.sql.functions as sf
spark.createDataFrame(
[[True], [True], [True]], ["flag"]
).select(sf.every("flag")).show()
+-----------+
|every(flag)|
+-----------+
| true|
+-----------+
import pyspark.sql.functions as sf
spark.createDataFrame(
[[True], [False], [True]], ["flag"]
).select(sf.every("flag")).show()
+-----------+
|every(flag)|
+-----------+
| false|
+-----------+