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

Xinrong Meng updated SPARK-36628:
---------------------------------
    Summary: Implement __getitem__ of label-based MultiIndex  (was: Implement 
label-based MultiIndex select)

> Implement __getitem__ of label-based MultiIndex
> -----------------------------------------------
>
>                 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to