MCPcopy
hub / github.com/pandas-dev/pandas / should_store

Method should_store

pandas/core/internals/blocks.py:324–336  ·  view source on GitHub ↗

Should we set self.values[indexer] = value inplace or do we need to cast? Parameters ---------- value : np.ndarray or ExtensionArray Returns ------- bool

(self, value: ArrayLike)

Source from the content-addressed store, hash-verified

322
323 @final
324 def should_store(self, value: ArrayLike) -> bool:
325 """
326 Should we set self.values[indexer] = value inplace or do we need to cast?
327
328 Parameters
329 ----------
330 value : np.ndarray or ExtensionArray
331
332 Returns
333 -------
334 bool
335 """
336 return value.dtype == self.dtype
337
338 # ---------------------------------------------------------------------
339 # Apply/Reduce and Helpers

Callers 3

isetMethod · 0.80
_iset_singleMethod · 0.80

Calls

no outgoing calls

Tested by 1