swat.dataframe.SASColumnSpec

class swat.dataframe.SASColumnSpec(name, label=None, dtype=None, width=0, format='', size=(1, 1), attrs=None)

Bases: object

Create a SASDataFrame column information object

Parameters
namestring

Name of the column.

labelstring

Label for the column.

typestring

SAS/CAS data type of the column.

widthint or long

Width of the formatted column.

formatstring

SAS format.

sizetwo-element tuple

Dimensions of the data.

attrsdict

Extended attributes of the column.

Returns
SASColumnSpec object
__init__(self, name, label=None, dtype=None, width=0, format='', size=(1, 1), attrs=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, name[, label, dtype, width, …])

Initialize self.

fromtable(_sw_table, col[, elem])

Create instance from SWIG table