MCPcopy Create free account
hub / github.com/dask/dask / normalize_extension_array

Function normalize_extension_array

dask/tokenize.py:350–354  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

348
349 @normalize_token.register(pd.arrays.ArrowExtensionArray)
350 def normalize_extension_array(arr):
351 try:
352 return (type(arr), normalize_token(arr._pa_array))
353 except AttributeError:
354 return (type(arr), normalize_token(arr._data))
355
356 @normalize_token.register(pd.api.extensions.ExtensionArray)
357 def normalize_extension_array(arr):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected