docarray.array.mixins.empty module#

class docarray.array.mixins.empty.EmptyMixin[source]#

Bases: object

Helper functions for building arrays with empty Document.

classmethod empty(size=0, *args, **kwargs)[source]#

Create a DocumentArray object with size empty Document objects.

Parameters:

size (int) – the number of empty Documents in this container

Return type:

T

Returns:

a DocumentArray object