PrimitiveDataFrameColumn<T> Class

Definition

A column to hold primitive types such as int, float etc.

public class PrimitiveDataFrameColumn<T> : Microsoft.Data.Analysis.DataFrameColumn, System.Collections.Generic.IEnumerable<T?> where T : struct
type PrimitiveDataFrameColumn<'T (requires 'T : struct)> = class
    inherit DataFrameColumn
    interface seq<Nullable<'T>>
    interface IEnumerable
Public Class PrimitiveDataFrameColumn(Of T)
Inherits DataFrameColumn
Implements IEnumerable(Of Nullable(Of T))

Type Parameters

T
Inheritance
PrimitiveDataFrameColumn<T>
Derived
Implements

Constructors

PrimitiveDataFrameColumn<T>(String, IEnumerable<Nullable<T>>)
PrimitiveDataFrameColumn<T>(String, IEnumerable<T>)
PrimitiveDataFrameColumn<T>(String, Int64)
PrimitiveDataFrameColumn<T>(String, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Int32, Int32)

Properties

DataType

The type of data this column holds.

(Inherited from DataFrameColumn)
Item[Int64, Int32]
Item[Int64]
Length

The length of this column

(Inherited from DataFrameColumn)
Name

The column name.

(Inherited from DataFrameColumn)
NullCount

Methods

Abs(Boolean)

Updates each numeric element with its absolute numeric value

Add(DataFrameColumn, Boolean)

Performs element-wise addition

Add<U>(U, Boolean)

Performs an element-wise addition on each value in the column

AddDataViewColumn(DataViewSchema+Builder)
AddValueUsingCursor(DataViewRowCursor, Delegate)
All()

Returns whether all the elements are True

And(Boolean, Boolean)

Performs an element-wise boolean And on each value in the column

And(DataFrameColumn, Boolean)

Performs element-wise boolean And

Any()

Returns whether any element is True

Append(Nullable<T>)
AppendMany(Nullable<T>, Int64)
Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>)

Applies a function to all the values

ApplyElementwise(Func<Nullable<T>,Int64,Nullable<T>>)
Clamp(T, T, Boolean)

Clamps values beyond the specified thresholds

Clamp<U>(U, U, Boolean)

Clamps values beyond the specified thresholds

(Inherited from DataFrameColumn)
ClampImplementation<U>(U, U, Boolean)
Clone(DataFrameColumn, Boolean, Int64)

Returns a clone of this column

Clone(IEnumerable<Int32>)
Clone(IEnumerable<Int64>)
Clone(PrimitiveDataFrameColumn<Int32>, Boolean)
Clone(PrimitiveDataFrameColumn<Int64>, Boolean)
CloneImplementation(DataFrameColumn, Boolean, Int64)

Clone column to produce a copy potentially changing the order of values by supplying mapIndices and an invert flag

CreateNewColumn(String, Int64)
CumulativeMax(Boolean)

Updates each element with its cumulative maximum

CumulativeMax(IEnumerable<Int64>, Boolean)

Updates column values at rowIndices with its cumulative rowIndices maximum

CumulativeMin(Boolean)

Updates each element with its cumulative minimum

CumulativeMin(IEnumerable<Int64>, Boolean)

Updates column values at rowIndices with its cumulative rowIndices minimum

CumulativeProduct(Boolean)

Updates each element with its cumulative product

CumulativeProduct(IEnumerable<Int64>, Boolean)

Updates column values at rowIndices with its cumulative rowIndices product

CumulativeSum(Boolean)

Updates each element with its cumulative sum

CumulativeSum(IEnumerable<Int64>, Boolean)

Updates column values at rowIndices with its cumulative rowIndices sum

Description()
Divide(DataFrameColumn, Boolean)

Performs element-wise division

Divide<U>(U, Boolean)

Performs an element-wise division on each value in the column

ElementwiseEquals(DataFrameColumn)

Performs element-wise equals

ElementwiseEquals<U>(U)

Performs an element-wise equals on each value in the column

ElementwiseGreaterThan(DataFrameColumn)

Performs element-wise greater than

ElementwiseGreaterThan<U>(U)

Performs an element-wise greater than on each value in the column

ElementwiseGreaterThanOrEqual(DataFrameColumn)

Performs element-wise greater than or equal

ElementwiseGreaterThanOrEqual<U>(U)

Performs an element-wise greater than or equal on each value in the column

ElementwiseIsNotNull()
ElementwiseIsNull()
ElementwiseLessThan(DataFrameColumn)

Performs element-wise less than

ElementwiseLessThan<U>(U)

Performs an element-wise less than on each value in the column

ElementwiseLessThanOrEqual(DataFrameColumn)

Performs element-wise less than or equal

ElementwiseLessThanOrEqual<U>(U)

Performs an element-wise less than or equal on each value in the column

ElementwiseNotEquals(DataFrameColumn)

Performs element-wise not-equals

ElementwiseNotEquals<U>(U)

Performs an element-wise not-equals on each value in the column

FillNulls(Object, Boolean)

Returns a new column with null elements replaced by value.

(Inherited from DataFrameColumn)
FillNulls(T, Boolean)

Returns a new column with nulls replaced by value

FillNullsImplementation(Object, Boolean)
Filter(T, T)

Returns a new column filtered by the lower and upper bounds

Filter<U>(U, U)

Returns a new column filtered by the lower and upper bounds

(Inherited from DataFrameColumn)
FilterImplementation<U>(U, U)
GetArrowField()
GetDataViewGetter(DataViewRowCursor)
GetEnumerator()
GetEnumeratorCore()
GetGroupedOccurrences(DataFrameColumn, HashSet<Int64>)
GetGroupedOccurrences<TKey>(DataFrameColumn, HashSet<Int64>)

Get occurences of each value from this column in other column, grouped by this value

(Inherited from DataFrameColumn)
GetMaxRecordBatchLength(Int64)
GetReadOnlyDataBuffers()

Returns an enumerable of immutable memory buffers representing the underlying values

GetReadOnlyNullBitMapBuffers()

Returns an enumerable of immutable ReadOnlyMemory<T> buffers representing null values in the Apache Arrow format

GetTypedValue(Int64)
GetValue(Int64)
GetValueGetterUsingCursor(DataViewRowCursor, DataViewSchema+Column)
GetValues(Int64, Int32)
GroupBy(Int32, DataFrame) System.Object.GroupBy(System.Int32,Microsoft.Data.Analysis.DataFrame)
GroupColumnValues<TKey>(HashSet<Int64>)
HasDescription()

Used to exclude columns from the Description method

Info()

Returns a StringDataFrameColumn containing the DataType and Length of this column

(Inherited from DataFrameColumn)
IsNumericColumn()
IsValid(Int64)
LeftShift(Int32, Boolean)

Performs an element-wise left shift on each value in the column

Max()

Returns the maximum of the values in the column

Max(IEnumerable<Int64>)

Returns the maximum of the values at rowIndices

Mean()
Median()
Min()

Returns the minimum of the values in the column

Min(IEnumerable<Int64>)

Returns the minimum of the values at the rowIndices

Modulo(DataFrameColumn, Boolean)

Performs element-wise modulus

Modulo<U>(U, Boolean)

Performs an element-wise modulus operation on each value in the column

Multiply(DataFrameColumn, Boolean)

Performs element-wise multiplication

Multiply<U>(U, Boolean)

Performs an element-wise multiplication on each value in the column

Or(Boolean, Boolean)

Performs an element-wise boolean Or on each value in the column

Or(DataFrameColumn, Boolean)

Performs element-wise boolean Or

Product()

Returns the product of the values in the column

Product(IEnumerable<Int64>)

Returns the product of the values at the rowIndices

Resize(Int64)
ReverseAdd<U>(U, Boolean)

Performs a reversed element-wise addition on each value in the column

ReverseAnd(Boolean, Boolean)

Performs a reversed element-wise boolean And on each value in the column

(Inherited from DataFrameColumn)
ReverseDivide<U>(U, Boolean)

Performs a reversed element-wise division on each value in the column

ReverseModulo<U>(U, Boolean)

Performs a reversed element-wise modulus operation on each value in the column

ReverseMultiply<U>(U, Boolean)

Performs a reversed element-wise multiplication on each value in the column

ReverseOr(Boolean, Boolean)

Performs a reversed element-wise boolean Or on each value in the column

(Inherited from DataFrameColumn)
ReverseSubtract<U>(U, Boolean)

Performs a reversed element-wise subtraction on each value in the column

ReverseXor(Boolean, Boolean)

Performs a reversed element-wise boolean Xor on each value in the column

(Inherited from DataFrameColumn)
RightShift(Int32, Boolean)

Performs an element-wise right shift on each value in the column

Round(Boolean)

Calls Math.Round on each value in a column

SetName(String)

Updates the column name.

(Inherited from DataFrameColumn)
SetName(String, DataFrame)
Obsolete.

Updates the name of this column.

(Inherited from DataFrameColumn)
SetValue(Int64, Object)
Sort(Boolean)
Subtract(DataFrameColumn, Boolean)

Performs element-wise subtraction

Subtract<U>(U, Boolean)

Performs an element-wise subtraction on each value in the column

Sum()

Returns the sum of the values in the column

Sum(IEnumerable<Int64>)

Returns the sum of the values at the rowIndices

ToArrowArray(Int64, Int32)
ToString()

Returns a preview of the column contents as a formatted string.

ValueCounts()
Xor(Boolean, Boolean)

Performs an element-wise boolean Xor on each value in the column

Xor(DataFrameColumn, Boolean)

Performs element-wise boolean Xor

Explicit Interface Implementations

IEnumerable.GetEnumerator() (Inherited from DataFrameColumn)

Applies to