itholic opened a new pull request #33450:
URL: https://github.com/apache/spark/pull/33450


   ### What changes were proposed in this pull request?
   
   This PR proposes adding an argument `index_col` for `ps.sql` function, to 
preserve the index when users want.
   
   Otherwise, the index is always lost.
   
   ### Why are the changes needed?
   
   Index is one of the key object for the existing pandas users, so we should 
provide the way to keep the index after computing the `ps.sql`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, the new argument is added.
   
   ### How was this patch tested?
   
   Add a unit test and manually check the build pass.


-- 
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