Skip to main content

Python Package that extends the functionality of the popular teradataml package through monkey-patching.

Project description

Logo

teradataml-plus

Python Package that extends the functionality of the popular teradataml package through monkey-patching. This is to use field-developed assets more naturally with the existing interface.

Installation

  • pip install teradataml-plus

Quickstart

#always import teradata-plus (tdmlplus) first
import tdmlplus

#then import teradataml. It will have all the additional functionality
import teradataml as tdml

# one additional function is for instance to get a correlation matrix straight from the DataFrame, just like in pandas

DF = tdml.DataFrame("some_table")
DF_corr = DF.corr() # not possible withot tdmlplus

History

v0.1.0 (2025-07-25)

  • First release on PyPI.
  • teradataml.DataFrame.corr() – correlation matrix like in pandas
  • teradataml.random – module for random data generation
    • teradataml.random.randn(...) – random normally distributed variables
  • teradataml.dba – module for database utilities
    • teradataml.dba.get_amps_count() – get number of AMPs

v0.2.0 (2025-07-30)

  • teradataml.DataFrame

    • show_CTE_query() – generate full lineage SQL with CTEs
    • deploy_CTE_view() – create a view from the full CTE SQL
    • easyjoin() – simplified join using common column names with suffix handling
  • tdml.dataframe.sql._SQLColumnExpression - aka DataFrameColumn

    • trycast() – apply TRYCAST SQL expression to a column
    • hashbin() – compute hash bin from a column with optional salt
    • _power_transform_get_lambda() – estimate lambda for power transform using sample data
    • power_transform() – apply power transform (Yeo-Johnson or Box-Cox) to column
    • power_fit_transform() – estimate lambda and transform in one step
  • teradataml.random

    • _generate_sql_for_correlated_normals() – internal SQL generator for correlated normal simulation
    • correlated_normals() – generate synthetic data with correlation structure matching a given DataFrame
  • tdml.widgets

    • tab_dfs() – display multiple DataFrames/tables in widget tabs
  • teradataml.prettyprint_sql() – pretty-print SQL with indentation and keyword formatting

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teradataml-plus-0.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teradataml_plus-0.2.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file teradataml-plus-0.2.0.tar.gz.

File metadata

  • Download URL: teradataml-plus-0.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for teradataml-plus-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a376ab41d5eac1988c67cc9f24eff9fa35e454d9a98f512e07afe87e7b99b6c8
MD5 441de03ab85a56086e4184eec9cc7f64
BLAKE2b-256 2ef6d52e836f83e1b2ea54b4dde6b424ff52f1cd62b083bf637ea607e5f1ffd8

See more details on using hashes here.

File details

Details for the file teradataml_plus-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for teradataml_plus-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a446a4910506d9ea504c62ed6bb89ec70aea05d183e08523e196d05d6108a687
MD5 9124a72e50396a7542e31f05861cc147
BLAKE2b-256 cf6b22c8ee97a5fa481130b521e0e96e8e90acc5b46bee9ea67e26f0b70eba0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page