Examples with teradataml.DataFrame.apply Method | Open Analytics Framework | VantageCloud Lake - Examples with teradataml.DataFrame.apply Method - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
Use case: Two simple analytical computations:
  • Text analysis: You want to remove some stopwords from a given text.
  • Normalization: You want to transform a given set of numbers to normalized values.
Prerequisite steps:
  • Connect from the client to a target VantageCloud Lake system where the analytics task are to be performed.
  • Import necessary modules for this use case.
    from teradatasqlalchemy.types import BIGINT, VARCHAR, FLOAT, INTEGER
    from collections import OrderedDict
    import numpy as np
    import pandas as pd