count() Method

Teradata® Python Package User Guide

brand
Teradata Vantage
prodname
Teradata Python Package
vrm_release
16.20
category
User Guide
featnum
B700-4006-098K

Use the count() method to return column-wise count of a DataFrame.

Example

>>> df1 = df.select(['employee_no', 'first_name', 'marks'])

>>> df1.count()
      count_employee_no count_first_name count_marks
    0                 3                2           0