(shape_data, default_symbol)
Fallback imputation for shapes.

        Use the default symbol, usually the last symbol in the list.

        Returns:
            (bool): True if there was any missing data
Fallback imputation for shapes.
Fallback imputation for shapes .
def default_impute_shapes(shape_data, default_symbol):
        """
        Fallback imputation for shapes.

        Use the default symbol, usually the last symbol in the list.

        Returns:
            (bool): True if there was any missing data
        """
        if shape_data is None:
            return False
        nans = np.isnan(shape_data)
        if np.any(nans):
            shape_data[nans] = default_symbol
            return True
        else:
            return False
def default_impute_shapes ( shape_data , default_symbol ) : if shape_data is None : return False nans = np . isnan ( shape_data ) if np . any ( nans ) : shape_data [ nans ] = default_symbol return True else : return False