pyspark.pandas.Series.to_list¶
-
Series.
to_list
() → List¶ Return a list of the values.
These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period)
Note
This method should only be used if the resulting list is expected to be small, as all the data is loaded into the driver’s memory.