sksurv.column.standardize

sksurv.column.standardize(table, with_std=True)

Perform Z-Normalization on each numeric column of the given table.

Parameters:
table : pandas.DataFrame or numpy.ndarray

Data to standardize.

with_std : bool, optional, default: True

If False data is only centered and not converted to unit variance.

Returns:
normalized : pandas.DataFrame

Table with numeric columns normalized. Categorical columns in the input table remain unchanged.