SyntaxFix
Write A Post
Hire A Developer
Questions
you could do
distinct_column = 'somecol' distinct_column_vals = df.select(distinct_column).distinct().collect() distinct_column_vals = [v[distinct_column] for v in distinct_column_vals]