df.select('_c1').distinct().show(5,truncate=False)
+------------------+ |_c1 | +------------------+ |Chad | |Anguilla | |Paraguay | |Yemen | |State of Palestine| +------------------+ only showing top 5 rows
Share this:
- Click to share on X (Opens in new window) X
- Click to share on Facebook (Opens in new window) Facebook
- Click to share on LinkedIn (Opens in new window) LinkedIn
- Click to share on Pinterest (Opens in new window) Pinterest
- Click to share on Tumblr (Opens in new window) Tumblr
- Click to share on Reddit (Opens in new window) Reddit