pyspark.pandas.MultiIndex.item# MultiIndex.item()[source]# Return the first element of the underlying data as a python tuple. Returns tupleThe first element of MultiIndex. Raises ValueErrorIf the data is not length-1. Examples >>> psmidx = ps.MultiIndex.from_tuples([('a', 'x')]) >>> psmidx.item() ('a', 'x')