Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2448,6 +2448,8 @@ def udf(f=None, returnType=StringType()):
@since(2.3)
def pandas_udf(f=None, returnType=None, functionType=None):
"""
.. note:: Experimental
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a big deal but can we put this right before doctest just for consistency?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it was hard to find a consistent place to put it. I changed this one to be after the param definitions, before doctest. hopefully that's better.


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BryanCutler, can we add a short node for createDataFrame and to Pandas with Pandas DataFrame input/output?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I could have sworn that was added before but I don't see it anywhere. Would it make sense to add the note to the SQLconf description?

Copy link
Member

@HyukjinKwon HyukjinKwon May 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anywhere is fine IMHO if it looks making sense. Another option is things like:

.. versionchanged:: 2.3
  Arrow optimization added
  .. note:: Experimental

I just wanted to make sure this feature is experimental.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, don't forget to update group.apply().

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to add the note under versionchanged ends up with everything on one line and the note isn't highlighted like usual with Experimental, so I just made it it's own note.

Creates a vectorized user defined function (UDF).

:param f: user-defined function. A python function if used as a standalone function
Expand Down