You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2021/08/31 23:03:00 UTC

[jira] [Commented] (SPARK-36628) Implement label-based MultiIndex select

    [ https://issues.apache.org/jira/browse/SPARK-36628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407717#comment-17407717 ] 

Apache Spark commented on SPARK-36628:
--------------------------------------

User 'xinrong-databricks' has created a pull request for this issue:
https://github.com/apache/spark/pull/33881

> Implement label-based MultiIndex select
> ---------------------------------------
>
>                 Key: SPARK-36628
>                 URL: https://issues.apache.org/jira/browse/SPARK-36628
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 3.3.0
>            Reporter: Xinrong Meng
>            Priority: Major
>
>  
> {code:java}
> >>> psdf = ps.DataFrame({'a':[1, 2, 3], 'b':[4,5,6], 'c':[7,8,9]}, index=pd.MultiIndex.from_tuples([('a', 'x'), ('a', 'y'), ('b', 'z')]))
> >>> psdf.loc[('a', 'x')]
> Traceback (most recent call last):
> ...
> KeyError: 'x'{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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