This section describes how to work with larrys.
All of the examples below assume that you have already imported larry:
>>> from la import larry
More examples of what you can do with larrys are given in Larry method reference.
Creating a larry
Let’s create a larry (LAbeled aRRaY):
y = larry([1, 2, 3])
> >>> y
> label_0
> 0
> 1
> 2
> x
array([1, 2, 3])
A larry consists of a data array and a label. In the statement above, larry creates the data array by converting the list [1, 2, 3] to a Numpy array. The label, since none was specified, defaults to range(n), where n in this case is 3.... read more