You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xinrong Meng (Jira)" <ji...@apache.org> on 2021/08/31 18:21:00 UTC
[jira] [Created] (SPARK-36628) Implement label-based MultiIndex
select
Xinrong Meng created SPARK-36628:
------------------------------------
Summary: 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
{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