A Int32 view of the values in GPU memory.
Whether the Series contains null elements.
The number of elements in this Series.
The DeviceBuffer for for the validity bitmask in GPU memory.
A boolean indicating whether a validity bitmask exists.
The number of null elements in this Series.
The number of child columns in this Series.
The offset of elements in this Series underlying Column.
The data type of elements in the underlying data.
OptionalmemoryResource: MemoryResourceOptionalmemoryResource: MemoryResourceOptional_memoryResource: MemoryResourceOptional_memoryResource: MemoryResourceOptional_memoryResource: MemoryResourceOptional_memoryResource: MemoryResourceOptional_memoryResource: MemoryResourceCopy the underlying device memory to host, and return an Iterator of the values.
Compute the absolute value for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the trigonometric cosine inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the hyperbolic cosine inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Add this Series and another Series or scalar value.
The other Series or scalar to add to this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Add this Series and another Series or scalar value.
The other Series or scalar to add to this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Add this Series and another Series or scalar value.
The other Series or scalar to add to this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Add this Series and another Series or scalar value.
The other Series or scalar to add to this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Return whether all elements are true in Series.
bool Exclude null values. If the entire row/column is NA and skipNulls is true, then the result will be true, as for an empty row/column. If skipNulls is false, then NA are treated as true, because these are not equal to zero.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
true if all elements are true in Series, else false.
Return whether any elements are true in Series.
bool Exclude NA/null values. If the entire row/column is NA and skipNulls is true, then the result will be true, as for an empty row/column. If skipNulls is false, then NA are treated as true, because these are not equal to zero.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
true if any elements are true in Series, else false.
Compute the trigonometric sine inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the hyperbolic sine inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the trigonometric tangent inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Perform a binary atan2 operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series} from '@rapidsai/cudf';
const a = Series.new([1, 3, 5, null, 7]);
const b = Series.new([1, 3, 3, null, 9]);
a.atan2(3);
// [0.3217505543966422, 0.7853981633974483, 1.0303768265243125, 0, 1.1659045405098132]
a.atan2(b);
// [0.7853981633974483, 0.7853981633974483, 1.0303768265243125, 0, 0.6610431688506869]
Perform a binary atan2 operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series} from '@rapidsai/cudf';
const a = Series.new([1, 3, 5, null, 7]);
const b = Series.new([1, 3, 3, null, 9]);
a.atan2(3);
// [0.3217505543966422, 0.7853981633974483, 1.0303768265243125, 0, 1.1659045405098132]
a.atan2(b);
// [0.7853981633974483, 0.7853981633974483, 1.0303768265243125, 0, 0.6610431688506869]
Perform a binary atan2 operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series} from '@rapidsai/cudf';
const a = Series.new([1, 3, 5, null, 7]);
const b = Series.new([1, 3, 3, null, 9]);
a.atan2(3);
// [0.3217505543966422, 0.7853981633974483, 1.0303768265243125, 0, 1.1659045405098132]
a.atan2(b);
// [0.7853981633974483, 0.7853981633974483, 1.0303768265243125, 0, 0.6610431688506869]
Perform a binary atan2 operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series} from '@rapidsai/cudf';
const a = Series.new([1, 3, 5, null, 7]);
const b = Series.new([1, 3, 3, null, 9]);
a.atan2(3);
// [0.3217505543966422, 0.7853981633974483, 1.0303768265243125, 0, 1.1659045405098132]
a.atan2(b);
// [0.7853981633974483, 0.7853981633974483, 1.0303768265243125, 0, 0.6610431688506869]
Compute the hyperbolic tangent inverse for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the bitwise not (~) for each value in this Series.
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Perform a binary & operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary & operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary & operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary & operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary | operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary | operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary | operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary | operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary ^ operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary ^ operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary ^ operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary ^ operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Casts the values to a new dtype (similar to static_cast in C++).
The new dtype.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
Series of same size as the current Series containing result of the cast operation.
Compute the cube-root (x^(1.0/3)) for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the smallest integer value not less than arg for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Concat a Series to the end of the caller, returning a new Series of a common dtype.
The Series to concat to the end of the caller.
OptionalmemoryResource: MemoryResourceCompute the trigonometric cosine for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the hyperbolic cosine for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the cumulative max of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The cumulative max of all the values in this Series.
Compute the cumulative min of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The cumulative min of all the values in this Series.
Compute the cumulative product of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The cumulative product of all the values in this Series.
Compute the cumulative sum of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The cumulative sum of all the values in this Series.
Divide this Series and another Series or scalar value.
The other Series or scalar to divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Divide this Series and another Series or scalar value.
The other Series or scalar to divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Divide this Series and another Series or scalar value.
The other Series or scalar to divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Divide this Series and another Series or scalar value.
The other Series or scalar to divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Returns a new Series with duplicate values from the original removed
Determines whether or not to keep the duplicate items.
Determines whether nulls are handled as equal values.
Determines whether null values are inserted before or after non-null values.
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Column's device memory.
series without duplicate values
drop Null values from the series
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Column's device memory.
series without Null values
import {Series} from '@rapidsai/cudf';
// Float64Series
Series.new([1, undefined, 3]).dropNulls() // [1, 3]
Series.new([1, null, 3]).dropNulls() // [1, 3]
Series.new([1, , 3]).dropNulls() // [1, 3]
// StringSeries
Series.new(["foo", "bar", undefined]).dropNulls() // ["foo", "bar"]
Series.new(["foo", "bar", null]).dropNulls() // ["foo", "bar"]
Series.new(["foo", "bar", ,]).dropNulls() // ["foo", "bar"]
// Bool8Series
Series.new([true, true, undefined]).dropNulls() // [true, true]
Series.new([true, true, null]).dropNulls() // [true, true]
Series.new([true, true, ,]).dropNulls() // [true, true]
Encode the Series values into integer labels.
The optional Series of values to encode into integers. Defaults to the unique elements in this Series.
The optional integer DataType to use for the returned Series. Defaults to Int32.
The optional value used to indicate missing category. Defaults to -1.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A sequence of encoded integer labels with values between 0 and n-1
categories, and nullSentinel for any null values
Perform the binary '==' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '==' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '==' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '==' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Compute the exponential (base e, euler number) for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Fills a range of elements in a column out-of-place with a scalar value.
The scalar value to fill.
The starting index of the fill range (inclusive).
The index of the last element in the fill range (exclusive), default this.length .
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
Fills a range of elements in-place in a column with a scalar value.
The scalar value to fill
The starting index of the fill range (inclusive)
The index of the last element in the fill range (exclusive)
import {Series} from '@rapidsai/cudf';
// Float64Series
Series.new([1, 2, 3]).fillInPlace(0) // [0, 0, 0]
// StringSeries
Series.new(["foo", "bar", "test"]).fillInPlace("rplc", 0, 1) // ["rplc", "bar", "test"]
// Bool8Series
Series.new([true, true, true]).fillInPlace(false, 1) // [true, false, false]
Return a sub-selection of this Series using the specified boolean mask.
A Series of boolean values for whose corresponding element in this Series will be selected or ignored.
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
import {Series} from "@rapidsai/cudf";
const mask = Series.new([true, false, true]);
// Float64Series
Series.new([1, 2, 3]).filter(mask) // [1, 3]
// StringSeries
Series.new(["foo", "bar", "test"]).filter(mask) // ["foo", "test"]
// Bool8Series
Series.new([false, true, true]).filter(mask) // [false, true]
Compute the largest integer value not greater than arg for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Floor-divide this Series and another Series or scalar value.
The other Series or scalar to floor-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Floor-divide this Series and another Series or scalar value.
The other Series or scalar to floor-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Floor-divide this Series and another Series or scalar value.
The other Series or scalar to floor-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Floor-divide this Series and another Series or scalar value.
The other Series or scalar to floor-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
A Series of 8/16/32-bit signed or unsigned integer indices to gather.
If true, coerce rows that corresponds to out-of-bounds indices
in the selection to null. If false, skips all bounds checking for selection values. Pass
false if you are certain that the selection contains only valid indices for better
performance. If false and there are out-of-bounds indices in the selection, the behavior
is undefined. Defaults to false.
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
Gathers the rows of the source columns according to selection, such that row "i"
in the resulting Series's columns will contain row selection[i] from the source columns. The
number of rows in the result series will be equal to the number of elements in selection. A
negative value i in the selection is interpreted as i+n, where n is the number of rows in
the source series.
For dictionary columns, the keys column component is copied and not trimmed if the gather results in abandoned key elements.
import {Series, Int32} from '@rapidsai/cudf';
const a = Series.new([1,2,3]);
const b = Series.new(["foo", "bar", "test"]);
const c = Series.new([true, false, true]);
const selection = Series.new({type: new Int32, data: [0,2]});
a.gather(selection) // Float64Series [1,3]
b.gather(selection) // StringSeries ["foo", "test"]
c.gather(selection) // Bool8Series [true, true]
Perform the binary '>=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Return a value at the specified index to host memory
the index in this Series to return a value for
Perform the binary '>' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '>' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Creates a Series of BOOL8 elements where true indicates the value is valid and
false indicates the value is null.
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Column's device memory.
A non-nullable Series of BOOL8 elements with false representing null
values.
Creates a Series of BOOL8 elements where true indicates the value is null and false
indicates the value is valid.
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Column's device memory.
A non-nullable Series of BOOL8 elements with true representing null
values.
Return Fisher’s unbiased kurtosis of a sample. Kurtosis obtained using Fisher’s definition of kurtosis (kurtosis of normal == 0.0). Normalized by N-1.
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
The unbiased kurtosis of all the values in this Series.
Perform the binary '<=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Compute the natural logarithm (base e) for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Perform a binary logBase operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary logBase operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary logBase operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary logBase operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary && operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalAnd(0); // Float64Series [ 0, 0, 0, 0 ]
a.logicalAnd(0).view(new Bool8); // Bool8Series [ false, false, false, false ]
a.logicalAnd(b); // [false, false, false, false]
Perform a binary && operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalAnd(0); // Float64Series [ 0, 0, 0, 0 ]
a.logicalAnd(0).view(new Bool8); // Bool8Series [ false, false, false, false ]
a.logicalAnd(b); // [false, false, false, false]
Perform a binary && operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalAnd(0); // Float64Series [ 0, 0, 0, 0 ]
a.logicalAnd(0).view(new Bool8); // Bool8Series [ false, false, false, false ]
a.logicalAnd(b); // [false, false, false, false]
Perform a binary && operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalAnd(0); // Float64Series [ 0, 0, 0, 0 ]
a.logicalAnd(0).view(new Bool8); // Bool8Series [ false, false, false, false ]
a.logicalAnd(b); // [false, false, false, false]
Perform a binary || operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalOr(0); // Float64Series [ 0, 1, 1, 0 ]
a.logicalOr(0).cast(new Bool8); // Bool8Series [ false, true, true, false ]
a.logicalOr(b); // [false, true, true, false]
Perform a binary || operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalOr(0); // Float64Series [ 0, 1, 1, 0 ]
a.logicalOr(0).cast(new Bool8); // Bool8Series [ false, true, true, false ]
a.logicalOr(b); // [false, true, true, false]
Perform a binary || operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalOr(0); // Float64Series [ 0, 1, 1, 0 ]
a.logicalOr(0).cast(new Bool8); // Bool8Series [ false, true, true, false ]
a.logicalOr(b); // [false, true, true, false]
Perform a binary || operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
import {Series, Bool8} from '@rapidsai/cudf';
const a = Series.new([false, true, true, false]);
const b = Series.new([false, false, false, false]);
a.logicalOr(0); // Float64Series [ 0, 1, 1, 0 ]
a.logicalOr(0).cast(new Bool8); // Bool8Series [ false, true, true, false ]
a.logicalOr(b); // [false, true, true, false]
Perform the binary '<' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '<' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Compute the mean of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The mean of all the values in this Series.
Compute the median of all values in this Series.
The optional skipNulls if true drops NA and null values before computing reduction, else if skipNulls is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The median of all the values in this Series.
Modulo this Series and another Series or scalar value.
The other Series or scalar to mod with this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Modulo this Series and another Series or scalar value.
The other Series or scalar to mod with this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Modulo this Series and another Series or scalar value.
The other Series or scalar to mod with this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Modulo this Series and another Series or scalar value.
The other Series or scalar to mod with this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Multiply this Series and another Series or scalar value.
The other Series or scalar to multiply this column by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Multiply this Series and another Series or scalar value.
The other Series or scalar to multiply this column by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Multiply this Series and another Series or scalar value.
The other Series or scalar to multiply this column by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Multiply this Series and another Series or scalar value.
The other Series or scalar to multiply this column by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform the binary '!=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '!=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '!=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Perform the binary '!=' operation between this column and another Series or scalar value.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of booleans with the comparison result.
Returns the n largest element(s).
The number of values to retrieve.
Determines whether to keep the first or last of any duplicate values.
Compute the logical not (!) for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Returns the n smallest element(s).
The number of values to retrieve.
Determines whether to keep the first or last of any duplicate values.
Perform a binary nullEquals operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullEquals operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullEquals operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullEquals operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMax operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMax operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMax operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMax operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMin operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMin operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMin operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Perform a binary nullMin operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Compute the nunique of all values in this Series.
The optional dropna if true drops NA and null values before computing reduction, else if dropna is false, reduction is computed directly.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The number of unqiue values in this Series.
Generate an ordering that sorts the Series in a specified way.
whether to sort ascending (true) or descending (false)
whether nulls should sort before or after other values
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
Series containting the permutation indices for the desired sort order
import {Series, NullOrder} from '@rapidsai/cudf';
// Float64Series
Series.new([50, 40, 30, 20, 10, 0]).orderBy(false) // [0, 1, 2, 3, 4, 5]
Series.new([50, 40, 30, 20, 10, 0]).orderBy(true) // [5, 4, 3, 2, 1, 0]
// StringSeries
Series.new(["a", "b", "c", "d", "e"]).orderBy(false) // [4, 3, 2, 1, 0]
Series.new(["a", "b", "c", "d", "e"]).orderBy(true) // [0, 1, 2, 3, 4]
// Bool8Series
Series.new([true, false, true, true, false]).orderBy(true) // [1, 4, 0, 2, 3]
Series.new([true, false, true, true, false]).orderBy(false) // [0, 2, 3, 1, 4]
// NullOrder usage
Series.new([50, 40, 30, 20, 10, null]).orderBy(false, 'before') // [0, 1, 2, 3, 4, 5]
Series.new([50, 40, 30, 20, 10, null]).orderBy(false, 'after') // [5, 0, 1, 2, 3, 4]
Power this Series and another Series or scalar value.
The other Series or scalar to use as the exponent for the power operation.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Power this Series and another Series or scalar value.
The other Series or scalar to use as the exponent for the power operation.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Power this Series and another Series or scalar value.
The other Series or scalar to use as the exponent for the power operation.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Power this Series and another Series or scalar value.
The other Series or scalar to use as the exponent for the power operation.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Return values at the given quantile.
the quantile(s) to compute, 0 <= q <= 1
This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points i and j. Valid values: ’linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
values at the given quantile.
Replace null values with a scalar value.
The scalar value to use in place of nulls.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
Replace null values with the corresponding elements from another Series.
The Series to use in place of nulls.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
import {Series} from '@rapidsai/cudf';
const replace = Series.new([10, 10, 10]);
const replaceBool = Series.new([false, false, false]);
// Float64Series
Series.new([1, null, 3]).replaceNulls(replace) // [1, 10, 3]
// StringSeries
Series.new(["foo", "bar", null]).replaceNulls(replace) // ["foo", "bar", "10"]
// Bool8Series
Series.new([null, true, true]).replaceNulls(replaceBool) // [false, true, true]
Replace null values with the non-null value following the null value in the same series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
import {Series} from '@rapidsai/cudf';
// Float64Series
Series.new([1, null, 3]).replaceNullsFollowing() // [1, 3, 3]
// StringSeries
Series.new(["foo", "bar", null]).replaceNullsFollowing() // ["foo", "bar", null]
Series.new(["foo", null, "bar"]).replaceNullsFollowing() // ["foo", "bar", "bar"]
// Bool8Series
Series.new([null, true, true]).replaceNullsFollowing() // [true, true, true]
Replace null values with the non-null value preceding the null value in the same series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
import {Series} from '@rapidsai/cudf';
// Float64Series
Series.new([1, null, 3]).replaceNullsPreceding() // [1, 1, 3]
// StringSeries
Series.new([null, "foo", "bar"]).replaceNullsPreceding() // [null, "foo", "bar"]
Series.new(["foo", null, "bar"]).replaceNullsPreceding() // ["foo", "foo", "bar"]
// Bool8Series
Series.new([true, null, false]).replaceNullsPreceding() // [true, true, false]
Returns a new series with reversed elements.
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
Series with values scaled between [0, 1].
Scatters single value into this Series according to provided indices.
A column of values to be scattered in to this Series
A column of integral indices that indicate the rows in the this Series to be
replaced by value.
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
import {Series, Int32} from '@rapidsai/cudf';
const a = Series.new({type: new Int32, data: [0, 1, 2, 3, 4]});
const indices = Series.new({type: new Int32, data: [2, 4]});
const indices_out_of_bounds = Series.new({type: new Int32, data: [5, 6]});
a.scatter(-1, indices); // returns [0, 1, -1, 3, -1];
a.scatter(-1, indices_out_of_bounds, true) // throws index out of bounds error
Scatters a column of values into this Series according to provided indices.
A column of integral indices that indicate the rows in the this Series to be
replaced by value.
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
import {Series, Int32} from '@rapidsai/cudf';
const a = Series.new({type: new Int32, data: [0, 1, 2, 3, 4]});
const b = Series.new({type: new Int32, data: [200, 400]});
const indices = Series.new({type: new Int32, data: [2, 4]});
const indices_out_of_bounds = Series.new({type: new Int32, data: [5, 6]});
a.scatter(b, indices); // returns [0, 1, 200, 3, 400];
a.scatter(b, indices_out_of_bounds, true) // throws index out of bounds error
The null-mask. Valid values are marked as 1; otherwise 0. The mask bit given the data index idx is computed as:
(mask[idx // 8] >> (idx % 8)) & 1
OptionalnullCount: numberThe number of null values. If None, it is calculated automatically.
set value at the specified index
the index in this Series to set a value for
the value to set at index
set values at the specified indices
the indices in this Series to set values for
the values to set at Series of indices
import {Series, Int32} from '@rapidsai/cudf';
const a = Series.new({type: new Int32, data: [0, 1, 2, 3, 4]});
const values = Series.new({type: new Int32, data: [200, 400]});
const indices = Series.new({type: new Int32, data: [2, 4]});
a.setValues(indices, values); // inplace update [0, 1, 200, 3, 400];
a.setValues(indices, -1); // inplace update [0, 1, -1, 3, -1];
Perform a binary << operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary << operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary << operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary << operation between this Series and another Series or scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary >> operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary >> operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary >> operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary >> operation between this Series and another Series or scalar
value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary shiftRightUnsigned operation between this Series and another Series or
scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary shiftRightUnsigned operation between this Series and another Series or
scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary shiftRightUnsigned operation between this Series and another Series or
scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Perform a binary shiftRightUnsigned operation between this Series and another Series or
scalar value.
The other Series or scalar to use.
OptionalmemoryResource: MemoryResourceA Series of a common numeric type with the results of the binary operation.
Compute the trigonometric sine for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the hyperbolic sine for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Return unbiased Fisher-Pearson skew of a sample.
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
The unbiased skew of all the values in this Series.
Generate a new Series that is sorted in a specified way.
whether to sort ascending (true) or descending (false) Default: true
whether nulls should sort before or after other values Default: before
OptionalmemoryResource: MemoryResourceAn optional MemoryResource used to allocate the result's device memory.
Sorted values
import {Series, NullOrder} from '@rapidsai/cudf';
// Float64Series
Series.new([50, 40, 30, 20, 10, 0]).sortValues(false) // [50, 40, 30, 20, 10, 0]
Series.new([50, 40, 30, 20, 10, 0]).sortValues(true) // [0, 10, 20, 30, 40, 50]
// StringSeries
Series.new(["a", "b", "c", "d", "e"]).sortValues(false) // ["e", "d", "c", "b", "a"]
Series.new(["a", "b", "c", "d", "e"]).sortValues(true) // ["a", "b", "c", "d", "e"]
// Bool8Series
Series.new([true, false, true, true, false]).sortValues(true) // [false, false, true,
true, true] Series.new([true, false, true, true, false]).sortValues(false) // [true,
true, true, false, false]
// NullOrder usage
Series.new([50, 40, 30, 20, 10, null]).sortValues(false, 'before') // [50, 40, 30, 20,
10, null]
Series.new([50, 40, 30, 20, 10, null]).sortValues(false, 'after') // [null, 50, 40, 30,
20, 10]
Compute the square-root (x^0.5) for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Return sample standard deviation of the Series.
Normalized by N-1 by default. This can be changed using the ddof argument
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The standard deviation of all the values in this Series.
Subtract this Series and another Series or scalar value.
The other Series or scalar to subtract from this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Subtract this Series and another Series or scalar value.
The other Series or scalar to subtract from this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Subtract this Series and another Series or scalar value.
The other Series or scalar to subtract from this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Subtract this Series and another Series or scalar value.
The other Series or scalar to subtract from this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Compute the trigonometric tangent for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Compute the hyperbolic tangent for each value in this Series.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
A Series of the same number of elements containing the result of the operation.
Copy the underlying device memory to host and return an Array (or TypedArray) of the values.
Copy a Series to an Arrow vector in host memory
Returns a new string Series converting integer columns to hexadecimal characters.
Any null entries will result in corresponding null entries in the output series.
The output character set is '0'-'9' and 'A'-'F'. The output string width will be a multiple of 2 depending on the size of the integer type. A single leading zero is applied to the first non-zero output byte if it less than 0x10.
Leading zeros are suppressed unless filling out a complete byte as in 1234 -> 04D2 instead of 000004D2 or 4D2.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series' device memory.
Return a string with a tabular representation of the Series, pretty-printed according to the options given.
True-divide this Series and another Series or scalar value.
The other Series or scalar to true-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
True-divide this Series and another Series or scalar value.
The other Series or scalar to true-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
True-divide this Series and another Series or scalar value.
The other Series or scalar to true-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
True-divide this Series and another Series or scalar value.
The other Series or scalar to true-divide this Series by.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Column's device memory.
A Series of a common numeric type with the results of the binary operation.
Returns a new Series with only the unique values that were found in the original
Determines whether nulls are handled as equal values.
OptionalmemoryResource: MemoryResourceMemory resource used to allocate the result Column's device memory.
series without duplicate values
Returns an object with keys "value" and "count" whose respective values are new Series containing the unique values in the original series and the number of times they occur in the original series.
object with keys "value" and "count"
Return unbiased variance of the Series.
Normalized by N-1 by default. This can be changed using the ddof argument
Exclude NA/null values. If an entire row/column is NA, the result will be NA.
Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements.
OptionalmemoryResource: MemoryResourceThe optional MemoryResource used to allocate the result Series's device memory.
The unbiased variance of all the values in this Series.
StaticnewCreate a new cudf.Series from an apache arrow vector
import {Series, Int32} from '@rapidsai/cudf';
import * as arrow from 'apache-arrow';
const arrow_vec = arrow.vectorFromArray(new Int32Array([1,2,3,4])));
const a = Series.new(arrow_vec); // Int32Series [1, 2, 3, 4]
const arrow_vec_list = arrow.vectorFromArray(
[[0, 1, 2], [3, 4, 5], [6, 7, 8]],
new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })),
);
const b = Series.new(arrow_vec_list) // ListSeries [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
const arrow_vec_struct = arrow.vectorFromArray(
[{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }],
new arrow.Struct([
arrow.Field.new({ name: 'x', type: new arrow.Int32 }),
arrow.Field.new({ name: 'y', type: new arrow.Int32 })
]),
);
const c = Series.new(arrow_vec_struct);
// StructSeries [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }]
Create a new cudf.Series from SeriesProps or a cudf.Column
Create a new cudf.Series from an apache arrow vector
import {Series, Int32} from '@rapidsai/cudf';
import * as arrow from 'apache-arrow';
const arrow_vec = arrow.vectorFromArray(new Int32Array([1,2,3,4])));
const a = Series.new(arrow_vec); // Int32Series [1, 2, 3, 4]
const arrow_vec_list = arrow.vectorFromArray(
[[0, 1, 2], [3, 4, 5], [6, 7, 8]],
new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })),
);
const b = Series.new(arrow_vec_list) // ListSeries [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
const arrow_vec_struct = arrow.vectorFromArray(
[{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }],
new arrow.Struct([
arrow.Field.new({ name: 'x', type: new arrow.Int32 }),
arrow.Field.new({ name: 'y', type: new arrow.Int32 })
]),
);
const c = Series.new(arrow_vec_struct);
// StructSeries [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }]
Create a new cudf.Series from an apache arrow vector
import {Series, Int32} from '@rapidsai/cudf';
import * as arrow from 'apache-arrow';
const arrow_vec = arrow.vectorFromArray(new Int32Array([1,2,3,4])));
const a = Series.new(arrow_vec); // Int32Series [1, 2, 3, 4]
const arrow_vec_list = arrow.vectorFromArray(
[[0, 1, 2], [3, 4, 5], [6, 7, 8]],
new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })),
);
const b = Series.new(arrow_vec_list) // ListSeries [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
const arrow_vec_struct = arrow.vectorFromArray(
[{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }],
new arrow.Struct([
arrow.Field.new({ name: 'x', type: new arrow.Int32 }),
arrow.Field.new({ name: 'y', type: new arrow.Int32 })
]),
);
const c = Series.new(arrow_vec_struct);
// StructSeries [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }]
Create a new cudf.Int8Series
Create a new cudf.Int16Series
Create a new cudf.Int32Series
Create a new cudf.Uint8Series
Create a new cudf.Uint16Series
Create a new cudf.Uint32Series
Create a new cudf.Uint64Series
Create a new cudf.Float32Series
Create a new cudf.Float64Series
Create a new cudf.Int64Series
Create a new cudf.TimestampMillisecondSeries
Create a new cudf.ListSeries that contain cudf.StringSeries elements.
Create a new cudf.ListSeries that contain cudf.Float64Series elements.
Create a new cudf.ListSeries that contain cudf.Int64Series elements.
Create a new cudf.ListSeries that contain cudf.Bool8Series elements.
Create a new cudf.ListSeries that contain cudf.TimestampMillisecondSeries elements.
import {Series} from '@rapidsai/cudf';
// ListSeries [[2021-05-13T00:00:00.000Z, null], [null, 2021-05-13T00:00:00.000Z]]
const a = Series.new([[new Date(), undefined], [undefined, new Date()]]);
a.getValue(0) // TimestampMillisecondSeries [2021-05-13T00:00:00.000Z, null]
a.getValue(1) // TimestampMillisecondSeries [null, 2021-05-13T00:00:00.000Z]
Create a new cudf.Series from an apache arrow vector
import {Series, Int32} from '@rapidsai/cudf';
import * as arrow from 'apache-arrow';
const arrow_vec = arrow.vectorFromArray(new Int32Array([1,2,3,4])));
const a = Series.new(arrow_vec); // Int32Series [1, 2, 3, 4]
const arrow_vec_list = arrow.vectorFromArray(
[[0, 1, 2], [3, 4, 5], [6, 7, 8]],
new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })),
);
const b = Series.new(arrow_vec_list) // ListSeries [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
const arrow_vec_struct = arrow.vectorFromArray(
[{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }],
new arrow.Struct([
arrow.Field.new({ name: 'x', type: new arrow.Int32 }),
arrow.Field.new({ name: 'y', type: new arrow.Int32 })
]),
);
const c = Series.new(arrow_vec_struct);
// StructSeries [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }]
Create a new cudf.Series from an apache arrow vector
import {Series, Int32} from '@rapidsai/cudf';
import * as arrow from 'apache-arrow';
const arrow_vec = arrow.vectorFromArray(new Int32Array([1,2,3,4])));
const a = Series.new(arrow_vec); // Int32Series [1, 2, 3, 4]
const arrow_vec_list = arrow.vectorFromArray(
[[0, 1, 2], [3, 4, 5], [6, 7, 8]],
new arrow.List(arrow.Field.new({ name: 'ints', type: new arrow.Int32 })),
);
const b = Series.new(arrow_vec_list) // ListSeries [[0, 1, 2], [3, 4, 5], [6, 7, 8]]
const arrow_vec_struct = arrow.vectorFromArray(
[{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }],
new arrow.Struct([
arrow.Field.new({ name: 'x', type: new arrow.Int32 }),
arrow.Field.new({ name: 'y', type: new arrow.Int32 })
]),
);
const c = Series.new(arrow_vec_struct);
// StructSeries [{ x: 0, y: 3 }, { x: 1, y: 4 }, { x: 2, y: 5 }]
StaticreadConstructs a Series from a text file path.
Path of the input file.
Optional delimiter.
StringSeries from the file, split by delimiter.
StaticsequenceConstructs a Series with a sequence of values.
Series with the sequence
import {Series, Int64, Float32} from '@rapidsai/cudf';
Series.sequence({size: 5}).toArray() // Int32Array(5) [0, 1, 2, 3, 4]
Series.sequence({size: 5, init: 5}).toArray() // Int32Array(5) [5, 6, 7, 8, 9]
Series
.sequence({ size: 5, init: 0, type: new Int64 })
.toArray() // BigInt64Array(5) [0n, 1n, 2n, 3n, 4n]
Series
.sequence({ size: 5, step: 2, init: 1, type: new Float32 })
.toArray() // Float32Array(5) [1, 3, 5, 7, 9]
A Series of 32-bit signed integer values in GPU memory.