Module tf.advanced.interchange

Produce exports of the whole dataset in different formats.

Currently only pandas is supported here,

although there is also an export to MQL elsewhere:

tf.convert.mql

Expand source code Browse git
"""
Produce exports of the whole dataset in different formats.

Currently only `pandas` is supported here,

although there is also an export to MQL elsewhere:

`tf.convert.mql`
"""

import types

from ..convert.mql import exportMQL
from ..convert.pandas import exportPandas


def interchangeApi(app):
    """Produce the interchange functions API.

    Parameters
    ----------
    app: obj
        The high-level API object
    """

    app.exportMQL = types.MethodType(exportMQL, app)
    app.exportPandas = types.MethodType(exportPandas, app)

Functions

def interchangeApi(app)

Produce the interchange functions API.

Parameters

app : obj
The high-level API object
Expand source code Browse git
def interchangeApi(app):
    """Produce the interchange functions API.

    Parameters
    ----------
    app: obj
        The high-level API object
    """

    app.exportMQL = types.MethodType(exportMQL, app)
    app.exportPandas = types.MethodType(exportPandas, app)