Transforms
- 7 Articles
Creating a custom transform In FactoryTX, a Transform manipulates data extracted by a Receiver . FactoryTX offers a few built-in transform components. A list of them and their settings can be found in the Transforms sectio...
The advanced transform calls arbitrary pandas methods on the input DataFrame. The result is the DataFrame produced by the final method call. Example: If we want to drop all rows that are blank and convert a mass from metric to imp...
The checksum_record transform creates a checksum based on values in a record and saves it in the factorytx_checksum column. This field will be saved outside of the data.fieldvalues of a record and moved outside of a rec...
The convert_timestamps transform converts strings representing timestamps into timestamp objects in a specified timezone. It can also be used to convert columns that already contain timestamps to the timezone. Example: If we want to convert the ...
The rename transform renames a data field. Since the data is in the form of a Pandas DataFrame, this function renames a list of columns. If a renamed column has the same name as another column that already exists, then the existing column ...
The replicate transform replicates a Pandas DataFrame. It will replicate it once for each asset in the asset_list . It will also add an ‘asset’ column that contains the name of the asset. Example: Say we have a DataFrame that looks li...
The tap transform writes records (as Pandas DataFrames) to the local filesystem for debugging, and then passes the records unmodified to the next step in the transform pipeline. Files emitted by the tap transform are stored in the compon...