semantique.CollectionProxy.concatenate

semantique.CollectionProxy.concatenate#

CollectionProxy.concatenate(dimension, **kwargs)[source]#

Concatenate multiple arrays along a new or existing dimension.

Parameters:
  • dimension (str) – Name of the dimension to concatenate along. To concatenate along an existing dimension, it should be a dimension that exists in all collection members. To concatenate along a new dimension, it should be a dimension that does not exist in any of the collection members.

  • **kwargs – Additional keyword arguments passed on to Collection.concatenate.

Returns:

ArrayProxy

Examples

>>> import semantique as sq
>>> sq.collection(sq.entity("water"), sq.entity("ice")).concatenate("concept")