You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "itholic (via GitHub)" <gi...@apache.org> on 2023/10/05 10:38:43 UTC

[PR] [SPARK-43704][CONNECT][PS] Support `MultiIndex` for `to_series()` [spark]

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

   ### What changes were proposed in this pull request?
   
   This PR proposes to support `MultiIndex` for `to_series()`.
   
   ### Why are the changes needed?
   
   So far, `to_series()` for MultiIndex is not working properly since the underlying data structure is different from Pandas and Spark. See the below examples in the next section.
   
   ### Does this PR introduce _any_ user-facing change?
   
   **Before**
   ```python
   >>> psmidx = ps.MultiIndex.from_tuples([("A", "B")])
   >>> psmidx.to_series()
   A  B    {'__index_level_0__': 'A', '__index_level_1__'...
   dtype: object
   ```
   
   **After**
   ```python
   >>> psmidx = ps.MultiIndex.from_tuples([("A", "B")])
   >>> psmidx.to_series()
   A  B    [A, B]
   dtype: object
   ```
   
   ### How was this patch tested?
   
   Enabling the existing UT.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-43704][CONNECT][PS] Support `MultiIndex` for `to_series()` [spark]

Posted by "itholic (via GitHub)" <gi...@apache.org>.
itholic commented on PR #43228:
URL: https://github.com/apache/spark/pull/43228#issuecomment-1750336396

   CI passed. cc @zhengruifeng @HyukjinKwon FYI


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-43704][CONNECT][PS] Support `MultiIndex` for `to_series()` [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #43228: [SPARK-43704][CONNECT][PS] Support `MultiIndex` for `to_series()`
URL: https://github.com/apache/spark/pull/43228


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org