[SPARK-2871] [PySpark] Add missing API

Try to bring all Java/Scala API to PySpark.
I saw it in Java API docs，so add it here.