data_algebra/data_ops.py
def data(*args, **kwargs):
    """
    Capture a full table for later use. Exactly one of args/kwags can be set.

    :param args: at most one unnamed table of the form table_name=table_value
    :param kwargs: at most one named table of the form table_name=table_value
    :return: a table description, with all values retained
    """
    assert (len(args) + len(kwargs)) == 1
    if len(kwargs) == 1:
        table_name = [k for k in kwargs.keys()][0]
        d = kwargs[table_name]
        return table(d=d, table_name=table_name)
    d = args[0]
    return table(d=d, table_name=None)

    Capture a full table for later use. Exactly one of args/kwags can be set.

    :param args: at most one unnamed table of the form table_name=table_value
    :param kwargs: at most one named table of the form table_name=table_value
    :return: a table description, with all values retained
    
Capture a full table for later use. Exactly one of args/kwags can be set.
Capture a full table for later use . Exactly one of args / kwags can be set .
def data(*args, **kwargs):
    assert (len(args) + len(kwargs)) == 1
    if len(kwargs) == 1:
        table_name = [k for k in kwargs.keys()][0]
        d = kwargs[table_name]
        return table(d=d, table_name=table_name)
    d = args[0]
    return table(d=d, table_name=None)
def data ( * args , ** kwargs ) : assert ( len ( args ) + len ( kwargs ) ) == 1 if len ( kwargs ) == 1 : table_name = [ k for k in kwargs . keys ( ) ] [ 0 ] d = kwargs [ table_name ] return table ( d = d , table_name = table_name ) d = args [ 0 ] return table ( d = d , table_name = None )
Capture a full table for later use.
Capture a full table for later use .
"""
    Capture a full table for later use. Exactly one of args/kwags can be set.

    :param args: at most one unnamed table of the form table_name=table_value
    :param kwargs: at most one named table of the form table_name=table_value
    :return: a table description, with all values retained
    """
a table description, with all values retained
a table description with all values retained
args
at most one unnamed table of the form table_name=table_value
at most one unnamed table of the form table_name = table_value
kwargs
at most one named table of the form table_name=table_value
at most one named table of the form table_name = table_value