def column_to_list(df: DataFrame, column_name: str):
    'Fast collection of all records in a column to a standard list.'
    return [row[column_name] for row in df.collect()]
Fast collection of all records in a column to a standard list.
def column_to_list(df: DataFrame, column_name: str):
    
    return [row[column_name] for row in df.collect()]