DataFrame.map_row() Arguments | Teradata Package for Python - DataFrame.map_row() Arguments - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2026-01-07
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage
Argument Required/Optional Type Description
user_function Required function or functools.partial Specifies the user-defined function to apply to each row in the teradataml DataFrame.
exec_mode Optional string Specifies the mode of execution for the user-defined function.
chunk_size Optional integer Specifies the number of rows to be read in each chunk, using an iterator to apply the user-defined function to each row in the chunk.
num_rows Optional integer Specifies the maximum number of sample rows from the teradataml DataFrame to apply the user-defined function when exec_mode is 'LOCAL'.
returns Optional Dictionary specifying column name to teradatasqlalchemy type mapping Specifies the output column definition corresponding to the output of user_function.
delimiter Optional One-character string Specifies a delimiter to use when reading columns from a row and writing result columns.
quotechar Optional One-character string Specifies a character that forces all input and output of the user function to be quoted using this specified character.
auth Optional string Specifies the authorization to use when running the user_function.
charset Optional string Specifies the character encoding for data.
data_order_column Optional string OR list of strings Specifies the Order By columns for the teradataml DataFrame.
is_local_order Optional bool Specifies a boolean value to determine whether the input data is to be ordered locally or not.
nulls_first Optional bool Specifies a boolean value to determine whether NULLs are listed first or last during ordering.
sort_ascending Optional bool Specifies a boolean value to determine if the result set is to be sorted on the data_order_column column in ascending or descending order.
debug Optional bool Specifies whether to remove the temporary script generated during execution and display the file path or not. This argument is useful for debugging if there are any failures when executing the function. When set to True, function displays the path of the script and does not remove the file from local file system. Otherwise, file is removed from the local file system.