Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-36394 Increase pandas API coverage in PySpark
  3. SPARK-36628

Implement __getitem__ of label-based MultiIndex

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • PySpark
    • None

    Description

       

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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            XinrongM Xinrong Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: