[SPARK-2871] [PySpark] Add missing API

Try to bring all Java/Scala API to PySpark.
In `max`, using this different comparator returns a different result.  We might want to pick an example here so that the two comparator settings yield different results.