Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/21031#discussion_r183196830
--- Diff: python/pyspark/sql/functions.py ---
@@ -2124,6 +2124,21 @@ def size(col):
return Column(sc._jvm.functions.size(_to_java_column(col)))
+@since(2.4)
+def cardinality(col):
--- End diff --
I see.--- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
