WLJS LogoWLJS Notebook

SynthesizeMissingValues

SynthesizeMissingValues[{example1, example2, ...}] replaces missing values in each example by generated values.

  • SynthesizeMissingValues[dist, data] uses the distribution dist to generate values.

Examples

Fill missing values:

SynthesizeMissingValues[{{1, 2, Missing[]}, {4, Missing[], 6}}]

With specific distribution:

SynthesizeMissingValues[NormalDistribution[], {1, Missing[], 3, Missing[]}]

Dataset with missing values:

SynthesizeMissingValues[Dataset[{<|"a" -> 1, "b" -> Missing[]|>}]]

Please visit the official Wolfram Language Reference for more details.

On this page