sksurv.column.standardize(table, with_std=True)[source]

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

If table is a pandas.DataFrame, only numeric columns are modified, all other columns remain unchanged. If table is a numpy.ndarray, it is only modified if it has numeric dtype, in which case the returned array will have floating point dtype.

  • 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.


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

Return type