HyukjinKwon opened a new pull request, #41655:
URL: https://github.com/apache/spark/pull/41655

   ### What changes were proposed in this pull request?
   
   This PR proposes to add one newline into the example of `mapInPandas`.
   
   ### Why are the changes needed?
   
   You copy and paste the example:
   
   ![Screenshot 2023-06-19 at 4 23 25 
PM](https://github.com/apache/spark/assets/6477701/56c4693d-63c8-4858-8324-6bfea6628ef7)
   
   and it does not work:
   
   ```
   >>> def filter_func(iterator):
   ...     for pdf in iterator:
   ...         yield pdf[pdf.id == 1]
   ... df.mapInPandas(filter_func, df.schema).show()
     File "<stdin>", line 4
       df.mapInPandas(filter_func, df.schema).show()
       ^
   ```
   
   We should add one more line to match 
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, it changes the example of `mapInPandas` copy-pastable
   
   ### How was this patch tested?
   
   Manually tested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to