@staticmethod<EOL><INDENT>def ones(shape, context=None, axis=(<NUM_LIT:0>,), dtype=float64, npartitions=None):<DEDENT>
from numpy import ones<EOL>return ConstructSpark._wrap(ones, shape, context, axis, dtype, npartitions)<EOL>
Create a spark bolt array of ones.

Parameters
----------
shape : tuple
    The desired shape of the array.

context : SparkContext
    A context running Spark. (see pyspark)

axis : tuple, optional, default=(0,)
    Which axes to distribute the array along. The resulting
    distributed object will use keys to represent these axes,
    with the remaining axes represented by values.

dtype : data-type, optional, default=float64
    The desired data-type for the array. If None, will
    be determined from the data. (see numpy)

npartitions : int
    Number of partitions for parallization.

Returns
-------
BoltArraySpark