pyspark.pandas.Index.item# Index.item()[source]# Return the first element of the underlying data as a python scalar. Returns scalarThe first element of Index. Raises ValueErrorIf the data is not length-1. Examples >>> psidx = ps.Index([10]) >>> psidx.item() 10