Python function such as max() doesn't work in pyspark application
If you get this error even after verifying that you have NOT used from pyspark.sql.functions import *, then try the following:
Use import builtins as py_builtin 
And then correspondingly call it with the same prefix. 
Eg: py_builtin.max()
*Adding David Arenburg's and user3610141's comments as an answer, as that is what help me fix my problem in databricks where there was a name collision with min() and max() of pyspark with python build ins.
Python function max(3,6) works under pyspark shell. But if it is put in an application and submit, it will throw an error:
TypeError: _() takes exactly 1 argument (2 given)