Limited Missing Value Support | Teradata Python Package - Limited Missing Value Support - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.00
Published
November 2021
Language
English (United States)
Last Update
2022-01-14
dita:mapPath
bol1585763678431.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

NaN and +/- Inf values can arise in floating point calculations. They are rendered when a DataFrame is evaluated.

>>> df
           value
row_id       
2           -inf   
1            inf
3            NaN
 
>>> df.dtypes
row_id       str
value        float

NaN and +/- Inf values are not supported as missing values. Particularly, there is no support to reference these values in the Advanced SQL Engine. Only the NULL value is supported as a missing value, in which case they are usually rendered as None. Floating point columns with NULL values can be rendered as NaN. In this case, NaN is recognized as a missing value.

>>> df[df.value.isna() == True]
 
 
           value
row_id      
3           None   
 
>>> df[df.value.isna() == False]
 
           value
row_id      
2           -inf
1            inf