cf.Data.loadd

Data.loadd(d)[source]

Reset the data array in place from a dictionary serialization.

Parameters :
d : dict

A dictionary serialization of a cf.Data object, as returned by its dumpd method.

Returns :

None

See also

dumpd

Examples

>>> d = cf.Data([[1, 2, 3]], 'm')
>>> e = cf.Data([6, 7, 8, 9], 's')
>>> e.loadd(d.dumpd())
>>> e.equals(d)
True
>>> e is d
False
>>> e = cf.Data(loadd=d.dumpd())
>>> e.equals(d)
True

Previous topic

cf.Data.func

Next topic

cf.Data.mask_invalid

This Page