Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/21053#discussion_r182350430
--- Diff: python/pyspark/sql/functions.py ---
@@ -1846,6 +1846,28 @@ def array_contains(col, value):
return Column(sc._jvm.functions.array_contains(_to_java_column(col),
value))
+@ignore_unicode_prefix
+@since(2.4)
+def element_at(col, value):
--- End diff --
Umm, the 2nd argument acts as `index` for an array or `key` for a map. This
is why I used `value`.
Can I use `index`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]