一般情况下可以分为两种:一种方法是通过一个覆盖全局的掩码表示缺失值, 另一种方法是用一个标签值(sentinel value) 表示缺失值。在掩码方法中, 掩码可能是一个与原数组维度相同的完整布尔类型数组, 也可能是用一个比特(0 或 1) 表示有缺失值的局部状态。在标签方法中, 标签值可能是具体的数据(例如用 -9999 表示缺失的整数) , 也可能是些极少
value] is None: log_single_rank( logger, logging.INFO, f"blend not provided for {split.name} split" ) else: assert self.blend_per_split[split.value][1] is None or len( self.blend_per_split[split.value][0] ) == len( self.blend_per_split[split.value][1] ), "blend per split...
self, indices: Sequence_[int], allow_fill: bool = False, fill_value: bool = None ) -> "PandasArrayExtensionArray": indices: np.ndarray = np.asarray(indices, dtype=np.int) indices: np.ndarray = np.asarray(indices, dtype=int) if allow_fill: fill_value = ( self.dtype.na_value if...
if self.blend_per_split[split.value] is None: log_single_rank( logger, logging.INFO, f"blend not provided for {split.name} split" ) else: assert self.blend_per_split[split.value][1] is None or len( self.blend_per_split[split.value][0] ...