PySpark Documentation — PySpark 3.2.0 documentation
spark.apache.org › docs › latestPySpark Documentation. ¶. PySpark is an interface for Apache Spark in Python. It not only allows you to write Spark applications using Python APIs, but also provides the PySpark shell for interactively analyzing your data in a distributed environment. PySpark supports most of Spark’s features such as Spark SQL, DataFrame, Streaming, MLlib ...
pyspark.sql module — PySpark 2.1.0 documentation
spark.apache.org › docs › 2pyspark.sql.functions.sha2(col, numBits) [source] ¶. Returns the hex string result of SHA-2 family of hash functions (SHA-224, SHA-256, SHA-384, and SHA-512). The numBits indicates the desired bit length of the result, which must have a value of 224, 256, 384, 512, or 0 (which is equivalent to 256).