get distinct row of a column pandas code example Example: distinct rows in this DataFrame # distinct rows in this DataFrame df.distinct().count() # 2