Package xdp :: Module transformation :: Class CleanTransform
[show private | hide private]
[frames | no frames]

Class CleanTransform

Transformation --+
                 |
                CleanTransform


CleanTransform objects encapsulate the process of cleaning a pair of vectors, X and Y, by removing (X,Y) pairs which have duplicate X values.
Method Summary
  __init__(self, cName, *columnNames)
Create a new CleanTransfrom object which will clean the vector from column 'cName' and any additional vectors from 'columnNames'.
  apply(self, data)
Clean the vectors columns from the object 'data' and return a new data object containing the trimmed columns.
    Inherited from Transformation
  __call__(self, data)
Apply this transformation to the xdp.Data object 'data'.

Method Details

__init__(self, cName, *columnNames)
(Constructor)

Create a new CleanTransfrom object which will clean the vector from column 'cName' and any additional vectors from 'columnNames'.

apply(self, data)

Clean the vectors columns from the object 'data' and return a new data object containing the trimmed columns.

An xdp.ColumnNameError is raised if either of the source column names specified in the constructor are invalid.
Overrides:
xdp.transformation.Transformation.apply

Generated by Epydoc 2.1 on Wed Jul 20 11:51:05 2005 http://epydoc.sf.net