Snippets Collections
df['column'].unique()  # Unique Values
df['column'].nunique() # Number of unique values
df['column'].value_counts() # Both
trx_1.select(f.countDistinct("stg_nexus_member_cd")).show()
star

Tue Jun 06 2023 07:39:55 GMT+0000 (Coordinated Universal Time)

#pandas #python #unique #dataframe
star

Wed May 26 2021 08:31:02 GMT+0000 (Coordinated Universal Time)

#pyspark #unique #count #dataframe #column

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension