column_from_1d_array

column_from_1d_array = <function column_from_1d_array>

Construct Column from 1D array.

See dataframe_from_2d_array for related 2D function.

Only Array-API-compliant 1D arrays are supported.

The resulting column will have the dtype corresponding to the Array API one:

  • ‘bool’ -> Bool()

  • ‘int8’ -> Int8()

  • ‘int16’ -> Int16()

  • ‘int32’ -> Int32()

  • ‘int64’ -> Int64()

  • ‘uint8’ -> UInt8()

  • ‘uint16’ -> UInt16()

  • ‘uint32’ -> UInt32()

  • ‘uint64’ -> UInt64()

  • ‘float32’ -> Float32()

  • ‘float64’ -> Float64()

Parameters:
  • array (array) – array-API compliant 1D array

  • name (str, optional) – Name to give columns.

Returns:

Column