Data transformation task classes (dqa.tasks.transformations
)#
Data conversion tasks#
|
Parses arrays of strings in the sense of the Python 'parse' library. |
|
Converts time strings into pandas Datetimes. |
|
Converts time strings into POSIX timestamps. |
|
Converts time deltas to total seconds. |
Elementary transformation tasks#
|
Performs a one-dimensional convolution with a fixed vector. |
|
Subtracts data rows by entry. |
|
Performs an operation entrywise on all specified data rows. |
|
Computes the entrywise product of multiple data rows. |
|
Divides data rows by entry. |
|
Adds data rows by entry. |
|
Performs the fast Fourier transform. |
|
Determines (entrywise) if values are in a specified range. |
|
Determines (entrywise) if values are in a specified range. |
|
Takes entries from one data row with indices given in another data row. |
|
Applies an affine linear transformation to the data with constant coefficients. |
|
Normalizes the values in each data row to the range [0, 1]. |
|
Computes the quadratic mean (root-mean-square). |
|
Computes the indices of the input data rows within a specified index reference data row. |
|
Returns the sign with a threshold around 0. |
|
Sorts data. |
|
Converts datetime objects to unix timestamps. |
General transformation tasks#
|
Computes scaling factors for all input data rows in such a way that they can be drawn in the sample plot despite highly different scales. |
|
Generates an indicator time series that takes the value 1 around certain chaining points with a specified margin. |
|
Turns categorical data into integer indices. |
|
Replaces entries (e.g. large integers or strings) by indices and creates a global index association table. |
|
Computes sample weight values depending on the density of the samples. |
|
Takes a data row with one single entry and extends it by repeating this single value up to the length of another data row. |
|
Replaces input values by integer values depending on given interval boundaries. |
|
Computes an indicator time series for a list of intervals given by start and end points. |
|
Performs linear regression and returns the coefficients. |
|
Pads all input data rows with nan values up to the length of a specified data row. |
|
Determines the phase sequence from the fourier coefficients of a three-phase alternating current. |
|
Performs a regex substitution on a data row for possibly multiple replacement patterns. |
|
Selects a certain index along a specified axis. |
|
Selects [start:end:step] along the specified axis. |
|
Cuts off all strings in the input at a certain maximum length. |
|
Performs substitutions given by a fixed dictionary. |
Index-wise transformation tasks#
|
Computes the mean for each set of entries with same index value. |
|
Performs an operation on all entries corresponding to the same index. |
|
Computes the standard deviation for each set of entries with same index value. |
Wrapper tasks#
|
Computes the absolute value, wrapper for np.abs |
|
Wrapper for np.concatenate |
|
Wrapper for np.cumsum. |
|
Expands dimensions of array, wrapper for np.expand_dims |
|
Applies a Gaussian blurring filter, wrapper for scipy.ndimage.gaussian_filter1d. |
|
Computes the logarithm, wrapper for np.log |
|
Computes the mean of data, wrapper for np.mean. |
|
Computes the norm of data rows, wrapper for np.linalg.norm |
|
Computes the products of the elements within each data row, wrapper for np.prod |
|
Produces an array of normally distributed random numbers of specified shape, wrapper for np.random.randn. |
|
Produces an array of random numbers of specified shape, wrapper for np.random.random. |
|
Creates a range array in the row specified by output_name, wrapper for np.arange. |
|
Rearranges the elements of an array to a different shape, wrapper for np.reshape |
|
Wrapper for the pd.Series.shift() function in pandas. |
|
Computes the sign of the elements, wrapper for np.sign. |
|
Computes the square root, wrapper for np.sqrt. |
|
Computes the standard deviation, wrapper for np.std. |
|
Lists the indices of non-zero entries in data rows, wrapper for np.where. |