isNull | teradatamlspk | pyspark2teradataml - isNull - Teradata Package for Python

Teradata® pyspark2teradataml User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
March 2024
Language
English (United States)
Last Update
2024-04-11
dita:mapPath
oeg1710443196055.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
oeg1710443196055
Product Category
Teradata Vantage

Function isNull should be changed in script when used with select.

No change is required when used while filtering the data.

PySpark

df.select(df.col.isNull().alias('col5')).show()

teradatamlspk

df.select(when(df.gpa.isNull(), 1).otherwise(0).alias('col5')).show()