max() Method - Teradata Python Package

Teradata® Python Package User Guide

Product
Teradata Python Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-02-29
dita:mapPath
rkb1531260709148.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

Use the max() method to return column-wise maximum value of a DataFrame.

Example: Return maximum value of a DataFrame

>>> df.max()
      max_employee_no max_first_name max_marks max_dob max_joined_date
    0             112          abcde      None    None      2018-05-12
 

Example: Return maximum value of some columns of a DataFrame

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

>>> df1.max()
      max_employee_no max_first_name max_joined_date
    0             112          abcde      2018-05-12