yasc.preprocessing.replace_blank

yasc.preprocessing.replace_blank(data, inplace=False)

Replace blank strings in data if any.

Replace blank strings with np.nan.

Parameters
dataDataFrame

Observed data.

inplacebool, optional

Whether to change data in place. Defaults to False.

Returns
DataFrame

Returns None if there are no blanks or inplace is True else returns changed data with blanks replaced with np.nan.