def add_missing_data_to_column(X, col, proportion):
	"""	Adds NaN entried to propotion of the data X in column col
	"""
	assert proportion >= 0 and proportion <= 1

	for row in range(X.shape[0]):
		if random.random() < proportion:
			X[row,col] = NaN

	return X
dataset/ETHPy150Open probcomp/crosscat/src/tests/synthetic_data_generator.py/add_missing_data_to_column/original