[ 
https://issues.apache.org/jira/browse/SPARK-53614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruifeng Zheng updated SPARK-53614:
----------------------------------
    Description: 
introduce iterator api
{code:java}
def func(
    batches: Iterator[pandas.DataFrame]
) -> Iterator[pandas.DataFrame]:
    ...


df.groupby("id").applyInPandas(func, schema='v long')

{code}
 

The implementation should be similar to 
https://issues.apache.org/jira/browse/SPARK-49547

> Introduce iterator API for ApplyInPandas
> ----------------------------------------
>
>                 Key: SPARK-53614
>                 URL: https://issues.apache.org/jira/browse/SPARK-53614
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect, PySpark
>    Affects Versions: 4.1.0
>            Reporter: Ruifeng Zheng
>            Priority: Major
>
> introduce iterator api
> {code:java}
> def func(
>     batches: Iterator[pandas.DataFrame]
> ) -> Iterator[pandas.DataFrame]:
>     ...
> df.groupby("id").applyInPandas(func, schema='v long')
> {code}
>  
> The implementation should be similar to 
> https://issues.apache.org/jira/browse/SPARK-49547



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to