Skip to main content
`Ctrl`+`K`

# numpy.record

class numpy.record

  A data-type scalar that allows field access as attribute lookup.

  Attributes:
    `T`

      Scalar attribute identical to the corresponding array attribute.

    `base`

      base object

    `data`

      Pointer to start of data.

    device
    `dtype`

      dtype object

    `flags`

      integer value of flags

    `flat`

      A 1-D view of the scalar.

    `imag`

      The imaginary part of the scalar.

    itemset
    `itemsize`

      The length of one element in bytes.

    nbytes
    `ndim`

      The number of array dimensions.

    newbyteorder
    ptp
    `real`

      The real part of the scalar.

    `shape`

      Tuple of array dimensions.

    `size`

      The number of elements in the gentype.

    `strides`

      Tuple of bytes steps in each dimension.

  Methods

  `all` | Scalar method identical to the corresponding array attribute.
  `any` | Scalar method identical to the corresponding array attribute.
  `argmax` | Scalar method identical to the corresponding array attribute.
  `argmin` | Scalar method identical to the corresponding array attribute.
  `argsort` | Scalar method identical to the corresponding array attribute.
  `astype` | Scalar method identical to the corresponding array attribute.
  `byteswap` | Scalar method identical to the corresponding array attribute.
  `choose` | Scalar method identical to the corresponding array attribute.
  `clip` | Scalar method identical to the corresponding array attribute.
  `compress` | Scalar method identical to the corresponding array attribute.
  `conjugate` | Scalar method identical to the corresponding array attribute.
  `copy` | Scalar method identical to the corresponding array attribute.
  `cumprod` | Scalar method identical to the corresponding array attribute.
  `cumsum` | Scalar method identical to the corresponding array attribute.
  `diagonal` | Scalar method identical to the corresponding array attribute.
  `dump` | Scalar method identical to the corresponding array attribute.
  `dumps` | Scalar method identical to the corresponding array attribute.
  `fill` | Scalar method identical to the corresponding array attribute.
  `flatten` | Scalar method identical to the corresponding array attribute.
  `getfield` | Scalar method identical to the corresponding array attribute.
  `item` | Scalar method identical to the corresponding array attribute.
  `max` | Scalar method identical to the corresponding array attribute.
  `mean` | Scalar method identical to the corresponding array attribute.
  `min` | Scalar method identical to the corresponding array attribute.
  `nonzero` | Scalar method identical to the corresponding array attribute.
  `pprint`() | Pretty-print all fields.
  `prod` | Scalar method identical to the corresponding array attribute.
  `put` | Scalar method identical to the corresponding array attribute.
  `ravel` | Scalar method identical to the corresponding array attribute.
  `repeat` | Scalar method identical to the corresponding array attribute.
  `reshape` | Scalar method identical to the corresponding array attribute.
  `resize` | Scalar method identical to the corresponding array attribute.
  `round` | Scalar method identical to the corresponding array attribute.
  `searchsorted` | Scalar method identical to the corresponding array attribute.
  `setfield` | Scalar method identical to the corresponding array attribute.
  `setflags` | Scalar method identical to the corresponding array attribute.
  `sort` | Scalar method identical to the corresponding array attribute.
  `squeeze` | Scalar method identical to the corresponding array attribute.
  `std` | Scalar method identical to the corresponding array attribute.
  `sum` | Scalar method identical to the corresponding array attribute.
  `swapaxes` | Scalar method identical to the corresponding array attribute.
  `take` | Scalar method identical to the corresponding array attribute.
  `tofile` | Scalar method identical to the corresponding array attribute.
  `tolist` | Scalar method identical to the corresponding array attribute.
  `tostring` | Scalar method identical to the corresponding array attribute.
  `trace` | Scalar method identical to the corresponding array attribute.
  `transpose` | Scalar method identical to the corresponding array attribute.
  `var` | Scalar method identical to the corresponding array attribute.
  `view` | Scalar method identical to the corresponding array attribute.

  conj |
  to_device |
  tobytes |