Currently, get_random_subsetraises a warning if it detects null foreign keys.
To support null foreign keys in SDV, we would like to remove this warning and change the behavior of get_random_subset to allow null foreign keys to be subsampled.
Expected behavior
A user can use get_random_subset with null foreign keys.
The user does not get an error or warning with null foreign keys.
The user can expect that subsampled data returned from get_random_subsetmay contain null foreign keys, if present in the input data.
Problem Description
get_random_subset
raises a warning if it detects null foreign keys.get_random_subset
to allow null foreign keys to be subsampled.Expected behavior
get_random_subset
with null foreign keys.get_random_subset
may contain null foreign keys, if present in the input data.