bundles / scipy 1.17.1 / scipy / stats / _mstats_basic / argstoarray
function
scipy.stats._mstats_basic:argstoarray
Signature
def argstoarray ( * args ) Summary
Constructs a 2D array from a group of sequences.
Extended Summary
Sequences are filled with missing values to match the length of the longest sequence.
Parameters
*args: sequencesGroup of sequences.
Returns
argstoarray: MaskedArrayA (
mxn) masked array, wheremis the number of arguments andnthe length of the longest argument.
Notes
numpy.ma.vstack has identical behavior, but is called with a sequence of sequences.
Examples
A 2D masked array constructed from a group of sequences is returned.from scipy.stats.mstats import argstoarray
✓argstoarray([1, 2, 3], [4, 5, 6])
✗argstoarray([1, 3], [4, 5, 6])
✗Aliases
-
scipy.stats._mstats_basic.argstoarray