MutableSeries

class MutableSeries[T] extends IndexOps[Unit]
trait IndexOps[Unit]
class Object
trait Matchable
class Any

Value members

Concrete methods

@targetName("notEqualsByRow")
def !=[T2](series: Series[T2])(implicit evidence$3: ClassTag[T2]): Series[Boolean]

Compares two series row-by-row returning a boolean Series with entries

Compares two series row-by-row returning a boolean Series with entries

  • true if values are not equal,
  • false if values are equal,
  • null if one of the values is not defined (null) or is not in the index.
Value Params
series

Series to compare with.

Returns

Boolean Series with index of left operand.

See also
Since

0.1.0

@targetName("notEqualsByRow")
def !=[T2](v: T2)(implicit evidence$4: ClassTag[T2]): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are not equal,
  • false if values are equal,
  • null if the value of the series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("notEqualsByRow")
def !=(v: Boolean): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are not equal,
  • false if values are equal,
  • null if the value of the series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("notEqualsByRow")
def !=(v: Double): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are not equal,
  • false if values are equal,
  • null if the value of the series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("notEqualByRow")
def !=(v: Int): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are not equal,
  • false if values are equal,
  • null if the value of the series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("rem")
def %(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("andOperator")
def &&(series: SeriesBoolean): Series[Boolean]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

@targetName("andAssign")
def &&=(series: SeriesBoolean): Unit
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

@targetName("times")
def *(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("times")
def *(series: SeriesInt): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("times")
def *(v: Double): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("times")
def *(v: Int): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("times")
def *(series: SeriesInt): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("times")
def *(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("times")
def *(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("times")
def *(v: Double): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("timesAssign")
def *=(series: SeriesDouble): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("timesAssign")
def *=(v: Double): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("timesAssign")
def *=(series: SeriesInt): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("timesAssign")
def *=(v: Int): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plus")
def +(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plus")
def +(series: SeriesInt): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plus")
def +(v: Double): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plus")
def +(v: Int): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plus")
def +(series: SeriesInt): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plus")
def +(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plus")
def +(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plus")
def +(v: Double): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plus")
def +(series: Series[String]): Series[String]
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("plus")
def +(s: String): Series[String]
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("plus")
def +[T](series: Series[T])(implicit evidence$2: ClassTag[T]): Series[String]
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("plusAssign")
def +=(series: SeriesDouble): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plusAssign")
def +=(v: Double): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("plusAssign")
def +=(series: SeriesInt): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plusAssign")
def +=(v: Int): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("plusAssign")
def +=(series: Series[String]): Unit
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("plusAssign")
def +=(s: String): Unit
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("plusAssign")
def +=[T](series: Series[T])(implicit evidence$1: ClassTag[T]): Unit
Implicitly added by toMutableSeriesString
Since

0.1.0

@targetName("minus")
def -(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minus")
def -(series: SeriesInt): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minus")
def -(v: Double): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minus")
def -(v: Int): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minus")
def -(series: SeriesInt): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("minus")
def -(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("minus")
def -(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("minus")
def -(v: Double): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("minusAssign")
def -=(series: SeriesDouble): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minusAssign")
def -=(v: Double): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("minusAssign")
def -=(series: SeriesInt): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("minusAssign")
def -=(v: Int): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("div")
def /(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("div")
def /(series: SeriesInt): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("div")
def /(v: Double): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("div")
def /(v: Int): Series[Double]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("div")
def /(series: SeriesInt): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("div")
def /(series: SeriesDouble): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("div")
def /(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("div")
def /(v: Double): Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("divAssign")
def /=(series: SeriesDouble): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("divAssign")
def /=(v: Double): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("divAssign")
def /=(series: SeriesInt): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("divAssign")
def /=(v: Int): Unit
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("smaller")
def <(series: SeriesDouble): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("smaller")
def <(v: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("smaller")
def <(series: SeriesInt): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("smaller")
def <(v: Int): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("smallerEqual")
def <=(series: SeriesDouble): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("smallerEqual")
def <=(v: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("smallerEqual")
def <=(series: SeriesInt): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("smallerEqual")
def <=(v: Int): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("equalsByRow")
def ==[T2](series: Series[T2])(implicit evidence$1: ClassTag[T2]): Series[Boolean]

Compares two series row-by-row returning a boolean Series with entries

Compares two series row-by-row returning a boolean Series with entries

  • true if values are equal,
  • false if values are not equal,
  • null if one of the values is not defined (null) or is not in the index.
Value Params
series

Series to compare with.

Returns

Boolean Series with index of left operand.

See also
Since

0.1.0

@targetName("equalsByRow")
def ==[T2](v: T2)(implicit evidence$2: ClassTag[T2]): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are equal,
  • false if values are not equal,
  • null if the values of the series is not defined (null).

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("equalsByRow")
def ==(v: Boolean): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are equal,
  • false if values are not equal,
  • null if the values of the Series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("equalsByRow")
def ==(v: Double): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are equal,
  • false if values are not equal,
  • null if the value of the Series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("equalsByRow")
def ==(v: Int): Series[Boolean]

Compares the entries of the Series with the value v returning a boolean Series with entries

Compares the entries of the Series with the value v returning a boolean Series with entries

  • true if values are equal,
  • false if values are not equal,
  • null if the value of the Series is not defined (null).
Value Params
v

Value to compare with.

Returns

Boolean Series.

See also
Since

0.1.0

@targetName("greater")
def >(series: SeriesDouble): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("greater")
def >(v: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("greater")
def >(series: SeriesInt): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("greater")
def >(v: Int): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("greaterEqual")
def >=(series: SeriesDouble): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("greaterEqual")
def >=(v: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

@targetName("greaterEqual")
def >=(series: SeriesInt): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

@targetName("greaterEqual")
def >=(v: Int): Series[Boolean]
Implicitly added by toMutableSeriesInt
Since

0.1.0

def agg[R](start: R, f: (R, T) => R): R

Aggregates over values row-by-row.

Aggregates over values row-by-row.

Value Params
f

Aggregation function (aggregatedValue, rowValue) => newAggregatedValue.

start

Start value.

Returns

Aggregated value.

See also
Since

0.1.0

Note

The aggregation function should not depend on the traversal order.

def all: Boolean
Implicitly added by toMutableSeriesBoolean

Determines if all (non-null) values are true.

Determines if all (non-null) values are true.

Returns

False if any value is false and true otherwise.

Since

0.1.0

def allStrict: Boolean
Implicitly added by toMutableSeriesBoolean

Determines if all values are true and none are null.

Determines if all values are true and none are null.

Returns

True all value are true and false otherwise. False if index is a slice.

Since

0.1.0

def and(series: SeriesBoolean): Series[Boolean]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def any: Boolean
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def apply(ix: Int): Option[T]

Returns the value at index ix as an Option, i.e. Some(value) or None.

Returns the value at index ix as an Option, i.e. Some(value) or None.

Value Params
ix

Row index.

Returns

Value as an Option. None if the value is undefined or ix not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

def apply(ix: Option[Int]): Option[T]

Returns the value at index ix as an Option, i.e. Some(value) or None.

Returns the value at index ix as an Option, i.e. Some(value) or None.

Value Params
ix

Option of row index.

Returns

Value as an Option. None if ix is None, the value is undefined or ix not in the index.

Throws
IndexBoundsException

If the value of ix is not part of the base index.

See also
Since

0.1.0

inline def apply(ix: Int, default: => T): T

Returns the value at index ix or the value default if undefined.

Returns the value at index ix or the value default if undefined.

Value Params
default

Default value.

ix

Row index.

Returns

Value or default if the value is not defined or ix not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

Due to performance, this method should be preferred over apply(ix: Int): Option[T].

inline def apply(ix: Option[Int], default: => T): T

Returns the value at index ix or the value default if undefined.

Returns the value at index ix or the value default if undefined.

Value Params
default

Default value.

ix

Option of row index.

Returns

Value or default if ix is None, the value is not defined or ix not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

Due to performance, this method should be preferred over apply(ix: Option[Int]): Option[T].

def as(name: String): Unit

Renames the Series.

Renames the Series.

Value Params
name

New name.

Since

0.1.0

Note

Result: Series with new name.

def as[T2](ix: Int)(implicit evidence$5: Typeable[T2], evidence$6: ClassTag[T2]): Option[T2]

Returns the value at index ix as an Option, i.e. Some(value) or None.

Returns the value at index ix as an Option, i.e. Some(value) or None.

Value Params
ix

Row index.

Returns

Value as an Option. None if the value is not set or not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

SeriesCastException

If inner type is not instance of the new type T2.

See also
Since

0.1.0

def as[T2](ix: Option[Int])(implicit evidence$7: Typeable[T2], evidence$8: ClassTag[T2]): Option[T2]

Returns the value at index ix as an Option, i.e. Some(value) or None.

Returns the value at index ix as an Option, i.e. Some(value) or None.

Value Params
ix

Option of row index.

Returns

Value as an Option. None if ix is None, the value is not set or not in the index.

Throws
IndexBoundsException

If the value of ix is not part of the base index.

See also
Since

0.1.0

def as[T2](ix: Int, default: => T2)(implicit evidence$9: Typeable[T2], evidence$10: ClassTag[T2]): T2

Returns the value at index ix or the value default if not set.

Returns the value at index ix or the value default if not set.

Value Params
default

Default value.

ix

Row index.

Returns

Value or default if the value is not set or not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

Due to performance, this method should be preferred over as[T2](ix: Int): Option[T2].

def as[T2](ix: Option[Int], default: => T2)(implicit evidence$11: Typeable[T2], evidence$12: ClassTag[T2]): T2

Returns the value at index ix or the value default if not set.

Returns the value at index ix or the value default if not set.

Value Params
default

Default value.

ix

Option of row index.

Returns

Value or default if ix is None, the value is not set or not in the index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

Due to performance, this method should be preferred over as[T2](ix: Option[Int]): Option[T2].

def clip(lower: Double, upper: Double): Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def compareIgnoreCase(s: String): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.compareToIgnoreCase

Since

0.1.0

def compareIgnoreCase(series: Series[String]): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.compareToIgnoreCase

Since

0.1.0

def contains(s: String): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.contains

Since

0.1.0

def copy: Series[T]

Copies the data into an immutable Series.

Copies the data into an immutable Series.

Returns

A Series object.

See also
Since

0.1.0

def count: Int

Counts the number of defined (non-null) elements. For Double Series, also Double.NaN is accounted as not defined.

Counts the number of defined (non-null) elements. For Double Series, also Double.NaN is accounted as not defined.

Returns

Number of defined (non-null) elements.

See also
Since

0.1.0

def countFalse: Int
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def countNotNaN: Int
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def countTrue: Int
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def defined: Unit

Keeps only defined elements and removes all index positions with undefined elements.

Keeps only defined elements and removes all index positions with undefined elements.

Since

0.1.0

Note

Result: Equivalent Series without undefined elements and trimmed index.

def dense: Unit

Converts the Series into a Series with a uniform (dense) index, which equals the base index. Missing indices are replaced by explicit undefined values (masked). The (accessible) data is not changed.

Converts the Series into a Series with a uniform (dense) index, which equals the base index. Missing indices are replaced by explicit undefined values (masked). The (accessible) data is not changed.

See also
Since

0.1.0

Note

Result: Same Series but with an uniform index.

def display(n: Int, colWidth: Int): Unit

Prints the Series as a table with an index column and annotated column types.

Prints the Series as a table with an index column and annotated column types.

Value Params
colWidth

The width of the column.

n

The maximal numbers of rows.

See also
Since

0.1.0

def endsWith(s: String): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.endsWith

Since

0.1.0

override def equals(that: Any): Boolean

Indicates if two Series are equal with respect to

Indicates if two Series are equal with respect to

  • name,
  • index and
  • values in all rows.
Value Params
that

Series (or object) to compare with.

Returns

True if equal and false otherwise.

See also
Since

0.1.0

Note
  • Comparing an undefined value (null) with undefined gives true, whereas undefined with not undefined is false.
  • Comparing Double.NaN with Double.NaN gives true, whereas Double.NaN with undefined (null) or any defined value gives false.
  • The method differentiates between a missing index and an undefined (null) value.
  • If the object is not a Series it returns false.
Definition Classes
Any
def equalsByValue[T2](series: Series[T2])(implicit evidence$13: ClassTag[T2]): Boolean

Indicates if two Series are equal with respect to (type and) values in all rows.

Indicates if two Series are equal with respect to (type and) values in all rows.

Value Params
series

Series (or object) to compare with.

See also
Since

0.1.0

Note
  • Comparing an undefined value (null) with undefined gives true, whereas undefined with not undefined is false.
  • Comparing Double.NaN with Double.NaN gives true, whereas Double.NaN with undefined (null) or any defined value gives false.
  • The method does not differentiate between a undefined value in the index or in the data.
  • The comparison ignores different names and indices. The index order is therefore ignored.
  • If the two Series have different base indices the result is false.
def exists(value: T): Boolean

Indicates if a value is contained in the Series.

Indicates if a value is contained in the Series.

Value Params
value

Value to search for.

Returns

Boolean flag if the the value exists.

Since

0.1.0

def fill[T2 <: T](series: Series[T2]): Unit

Replaces undefined (null) values by the values of series for the current index. This is also known as coalesce operation.

Replaces undefined (null) values by the values of series for the current index. This is also known as coalesce operation.

Value Params
series

Series with the same base index.

Throws
BaseIndexException

If the base index are different.

SeriesCastException

If the Series do not have the same type.

Since

0.1.0

Note

Result: Series with data from the first series or if undefined from the second. The original index is not altered.

def fill(value: T): Unit

Fills undefined (null) values of a Series with respect to the current index.

Fills undefined (null) values of a Series with respect to the current index.

Value Params
value

Value for filling non-set values.

Since

0.1.0

Note

Result: Series with undefined values filled. The original index is preserved.

def fillAll[T2 <: T](series: Series[T2]): Unit

Replaces undefined (null) values by the values of series also known as coalesce operation. The index is expanded to the uniform base index.

Replaces undefined (null) values by the values of series also known as coalesce operation. The index is expanded to the uniform base index.

Value Params
series

Series with the same base index.

Throws
BaseIndexException

If the base index are different.

SeriesCastException

If the Series do not have the same type.

Since

0.1.0

Note

Result: Series with data from the first series or if undefined from the second. The index is expanded to the uniform base index.

def fillAll(value: T): Unit

Fills undefined (null) values of a Series with respect to the base index.

Fills undefined (null) values of a Series with respect to the base index.

Value Params
value

Value for filling undefined values.

Since

0.1.0

Note

Result: Series with undefined values filled. The index is expanded to the uniform base index.

def first: Option[Int]

Returns the index position of the first defined (non-null) value and for boolean Series the first occurrence of the value true.

Returns the index position of the first defined (non-null) value and for boolean Series the first occurrence of the value true.

Returns

Index of first non-null entry or None if none of the entries are defined. For boolean Series, the index of the first occurrence of true or None if all values are false.

See also
Since

0.1.0

Note

The result depends on the index order.

def first(f: T => Boolean): Option[Int]

Returns the index position of the first element where the condition is satisfied or None if not found.

Returns the index position of the first element where the condition is satisfied or None if not found.

Value Params
f

Predicate function.

Returns

Index position or None if the predicate is never true.

See also
Since

0.1.0

Note

The result depends on the index order.

def first(value: T): Option[Int]

Returns the index position of the first occurrence of a value or None if not found.

Returns the index position of the first occurrence of a value or None if not found.

Value Params
value

Value to search for.

Returns

Index position or None if not found.

See also
Since

0.1.0

Note

The result depends on the index order.

def first[T2](series: Series[T2], value: T2): Option[T]

Returns the value at the index position, where a value occurs the first time in another Series or None if the value is not found.

Returns the value at the index position, where a value occurs the first time in another Series or None if the value is not found.

Value Params
series

Series which is searched for the value.

value

Value to search for.

Returns

Option of the value at the index position.

Throws
BaseIndexException

If the base indices are not equal.

See also
Since

0.1.0

Note

The result depends on the index order.

def first[T2](series: Series[T2], value: T2, default: => T): T

Returns the value at the index position, where a value occurs the first time in another Series or None if the value is not found.

Returns the value at the index position, where a value occurs the first time in another Series or None if the value is not found.

Value Params
default

value if value is not found.

series

Series which is searched for the value.

value

Value to search for.

Returns

Value a the index position or the default value if not found.

Throws
BaseIndexException

If the base indices are not equal.

See also
Since

0.1.0

Note

The result depends on the index order.

def forall(f: T => Boolean): Boolean

Tests whether the condition holds for all elements.

Tests whether the condition holds for all elements.

Value Params
f

Predicate function to satisfy.

Returns

False if at least one (non-null) element does not satisfy the condition, true otherwise.

See also
Since

0.1.0

def forallStrictly(f: T => Boolean): Boolean

Tests whether the condition holds for all elements.

Tests whether the condition holds for all elements.

Value Params
f

Predicate function to satisfy.

Returns

False if at least one element does not satisfy the condition or is not set (null), true otherwise.

See also
Since

0.1.0

inline def get(ix: Int): T

Returns the value at index ix. Throws an exception if the value is not set or not in the index.

Returns the value at index ix. Throws an exception if the value is not set or not in the index.

Value Params
ix

Row index.

Returns

Value for the index.

Throws
NoSuchElementException

If he value is not set (null), ix is not in the index or if ix is not part of the base index.

See also
Since

0.1.0

inline def get(ix: Option[Int]): T

Returns the value at index ix. Throws an exception if the value is not defined or ix not in the index.

Returns the value at index ix. Throws an exception if the value is not defined or ix not in the index.

Value Params
ix

Option of row index.

Returns

Value for the index.

Throws
NoSuchElementException

If he value is undefined (null), ix is not in the index, ix is None or if ix is not part of the base index.

See also
Since

0.1.0

def hasSameDefined[T2](series: Series[T2])(implicit evidence$14: ClassTag[T2]): Boolean

Indicates if two Series have the same defined values as well as the same undefined (null) values, where the values themselves are not compared.

Indicates if two Series have the same defined values as well as the same undefined (null) values, where the values themselves are not compared.

Value Params
series

Series to compare with.

Returns

True if the undefined and defined values are the same for both Series.

See also
Since

0.1.0

Note
  • The method does not differentiate between a missing value in the index and a undefined value (null).
  • The comparison ignores different names and indices.
  • If the two Series have different base indices the result is false.
def hasSameIndex[T2](series: Series[T2])(implicit evidence$15: ClassTag[T2]): Boolean

Compares if the indices of two Series are equal.

Compares if the indices of two Series are equal.

Value Params
series

Series to compare with.

Returns

True if indices are equal and false otherwise.

See also
Since

0.1.0

def hasUndefined: Boolean

Returns true if at least one of the elements is undefined or the index has less elements than the base index (slicing of the Series).

Returns true if at least one of the elements is undefined or the index has less elements than the base index (slicing of the Series).

Returns

False if an element is defined for each base index element or otherwise true.

See also

isDefined for negation.

Since

0.1.0

def hash: Series[Int]
Implicitly added by toMutableSeriesString
See also

String.hashCode

Since

0.1.0

override def hashCode: Int

Hash code.

Hash code.

Returns

Hash code derived from index length and name.

Since

0.1.0

Definition Classes
Any
def headOption: Option[T]

Returns the first value as an Option, i.e. Some(value) or None if the first value is undefined.

Returns the first value as an Option, i.e. Some(value) or None if the first value is undefined.

Returns

Value as an Option.

Since

0.1.0

Note

The result depends on the index order.

def headValue: Option[T]

Returns the first (defined) value as an Option, i.e. Some(value) or None if all values are undefined.

Returns the first (defined) value as an Option, i.e. Some(value) or None if all values are undefined.

Returns

Value as an Option, which is None if the Series an no defined values.

Since

0.1.0

Note

The result depends on the index order.

def inRange(lower: Double, upper: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def inRangeExclusive(lower: Double, upper: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def inRangeLowerExclusive(lower: Double, upper: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def inRangeUpperExclusive(lower: Double, upper: Double): Series[Boolean]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def indexEmpty: Boolean

Indicates if the index is empty.

Indicates if the index is empty.

Returns

True if the index has at least one element or otherwise false.

Since

0.1.0

def indexIterator: Iterator[Int]

Iterator over the index.

Iterator over the index.

Returns

Iterator of index positions.

Since

0.1.0

Note

For better performance consider using methods such as agg or map.

def indexNonEmpty: Boolean

Indicates if the index is not empty.

Indicates if the index is not empty.

Returns

True if the index has no elements or otherwise false.

Since

0.1.0

def indexOf(s: String): Series[Int]
Implicitly added by toMutableSeriesString
See also

String.indexOf

Since

0.1.0

def indicesTrue: Array[Int]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def info: String

Information string on the Series.

Information string on the Series.

Returns

Info string.

Since

0.1.0

def invert: Unit
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def isDefined: Boolean

Returns true if the data does not contains undefined values and the index includes all index positions of the base index.

Returns true if the data does not contains undefined values and the index includes all index positions of the base index.

Returns

Boolean if elements are defined for all index positions.

See also

hasUndefined for negation.

Since

0.1.0

def isEmpty: Boolean

Indicates if a Series has no defined elements.

Indicates if a Series has no defined elements.

Returns

True if either the index is empty or all values are undefined. Otherwise false is returned.

Since

0.1.0

def isEmptyString: Series[Boolean]
Implicitly added by toMutableSeriesString
Returns

True, if String is empty.

Since

0.1.0

def isType[T2](implicit evidence$16: Typeable[T2]): Boolean

Checks if the Series is of type T2.

Checks if the Series is of type T2.

Returns

True if values are instance of T2 or false otherwise.

Since

0.1.0

Note

For better performance, the type check is only performed on the head of the Series except for the types Boolean, Double, Int and String. Checking the Series with regards to other types on a Series with mixed data can have misleading results. Use isTypeStrictly for testing.

def isTypeAll[T2](implicit evidence$17: Typeable[T2]): Boolean

Checks if the Series is of type T2 and all values are defined.

Checks if the Series is of type T2 and all values are defined.

Returns

True if values are instance of T2 and all values are defined. False otherwise.

Since

0.1.0

Note

For better performance, the type check is only performed on the head of the Series except for the types Boolean, Double, Int and String. Checking the Series with regards to other types on a Series with mixed data can have misleading results. Use isTypeStrictly for testing.

def isTypeAllStrictly[T2](implicit evidence$18: Typeable[T2]): Boolean

Checks if the Series is of type T2 and all values are defined.

Checks if the Series is of type T2 and all values are defined.

Returns

True if every value is instance of T2 and all values are defined. False otherwise.

Since

0.1.0

Note

The type check is performed on all values with causes a slower performance except for the types Any, Boolean, Double, Int and String.

def isTypeStrictly[T2](implicit evidence$19: Typeable[T2]): Boolean

Checks if the Series is of type T2.

Checks if the Series is of type T2.

Returns

True if every value is instance of T2 or false otherwise.

Since

0.1.0

Note

The type check is performed on all values with causes a slower performance except for the types Any, Boolean, Double, Int and String.

def iterator: Iterator[Option[T]]

Iterator over the values of the Series ordered by the index.

Iterator over the values of the Series ordered by the index.

Returns

Iterator of type Option[T] returning Some(value) if the value is defined and None if undefined.

Since

0.1.0

Note

For better performance consider using methods such as agg or map.

def last: Option[Int]

Returns the index position of the last set (non-null) value and for boolean Series the last occurrence of the value true.

Returns the index position of the last set (non-null) value and for boolean Series the last occurrence of the value true.

Returns

Index of last non-null entry or None if none of the entries are set. For boolean Series, the index of the last occurrence of true or None if all values are false.

See also
Since

0.1.0

Note

The result depends on the index order.

def last(value: T): Option[Int]

Returns the index position of the last occurrence of a value or None if not found.

Returns the index position of the last occurrence of a value or None if not found.

Value Params
value

Value to search for.

Returns

Index position or None if not found.

See also
Since

0.1.0

Note

The result depends on the index order.

def last[T2](series: Series[T2], value: T2): Option[T]

Returns the value at the index position, where a value occurs the last time in another Series or None if the value is not found.

Returns the value at the index position, where a value occurs the last time in another Series or None if the value is not found.

Value Params
series

Series which is searched for the value.

value

Value to search for.

Returns

Option of the value at the index position.

Throws
BaseIndexException

If the base indices are not equal.

See also
Since

0.1.0

Note

The result depends on the index order.

def last[T2](series: Series[T2], value: T2, default: => T): T

Returns the value at the index position, where a value occurs the last time in another Series or None if the value is not found.

Returns the value at the index position, where a value occurs the last time in another Series or None if the value is not found.

Value Params
default

value if value is not found.

series

Series which is searched for the value.

value

Value to search for.

Returns

Value a the index position or the default value if not found.

Throws
BaseIndexException

If the base indices are not equal.

See also
Since

0.1.0

Note

The result depends on the index order.

def lastIndexOf(s: String): Series[Int]
Implicitly added by toMutableSeriesString
See also

String.lastIndexOf

Since

0.1.0

def length: Int

Number of rows.

Number of rows.

Returns

Length of the Series, i.e. number of elements in the index.

See also
Since

0.1.0

def lengths: Series[Int]
Implicitly added by toMutableSeriesString
See also

String.length

Since

0.1.0

def lower: Unit
Implicitly added by toMutableSeriesString
See also

String.toLowerCase

Since

0.1.0

def mad: Double
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def map[R](f: T => R)(implicit evidence$20: ClassTag[R]): Series[R]

Applies a function on each element of the Series.

Applies a function on each element of the Series.

Value Params
f

Row-wise function.

Returns

Transformed Series of type R.

See also
Since

0.1.0

def map[T2, R](series: Series[T2], f: (T, T2) => R)(implicit evidence$21: ClassTag[T2], evidence$22: ClassTag[R]): Series[R]

Applies a row-wise function on two Series.

Applies a row-wise function on two Series.

Value Params
f

Row-wise function which takes as arguments elements of both Series. If one of the elements in a row is undefined the result in undefined.

series

Second Series.

Returns

Transformed Series of type R.

Since

0.1.0

def matches(regex: String): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.matches

Since

0.1.0

def max: Boolean
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def max: Double
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def mean: Double
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def min: Boolean
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def min: Double
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def mod(v: Int): Series[Int]
Implicitly added by toMutableSeriesInt
def name: String

Name of the MutableSeries.

Name of the MutableSeries.

Returns

Name. If no name is set the name is an empty string.

Since

0.1.0

def nonEmpty: Boolean

Indicates if a Series has defined elements.

Indicates if a Series has defined elements.

Returns

True if at least one defined element exists. Otherwise false is returned.

Since

0.1.0

def nonEmptyString: Series[Boolean]
Implicitly added by toMutableSeriesString
Returns

True, if String is not empty.

Since

0.1.0

def numRows: Int

Number of rows.

Number of rows.

Returns

Length of the Series, i.e. number of elements in the index.

See also
Since

0.1.0

def numRowsBase: Int

Number of rows of the underlying data vector.

Number of rows of the underlying data vector.

Returns

Number of elements in the base index.

Since

0.1.0

def or(series: SeriesBoolean): Series[Boolean]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def orElse[T2 <: T](series: Series[T2]): Unit

Replaces undefined (null) values by the values of series for the current index. Synonym for fill.

Replaces undefined (null) values by the values of series for the current index. Synonym for fill.

Value Params
series

Series with the same base index.

Throws
BaseIndexException

If the base index are different.

SeriesCastException

If the Series do not have the same type.

See also
Since

0.1.0

Note

Result: Series with data from the first series or if undefined from the second. The original index is not altered.

def orElse(value: T): Unit

Fills undefined (null) values of a Series with respect to the current index. Synonym for fill.

Fills undefined (null) values of a Series with respect to the current index. Synonym for fill.

Value Params
value

Value for filling non-set values.

See also
Since

0.1.0

Note

Result: Series with undefined values filled. The original index is preserved.

inline def put(ix: Int, value: T): Unit

Puts the value at index ix. If ix is not in the index but within the base index, the index is expanded to the uniform base index.

Puts the value at index ix. If ix is not in the index but within the base index, the index is expanded to the uniform base index.

Value Params
ix

Row index.

Returns

Value to be set.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

The access is constant time with the exception of the first put access to a sequential index or the (one-time) expansion of the index.

def replace(target: String, replacement: String): Unit
Implicitly added by toMutableSeriesString
See also

String.replace

Since

0.1.0

def replaceAll(regex: String, replacement: String): Unit
Implicitly added by toMutableSeriesString
See also

String.replaceAll

Since

0.1.0

def replaceFirst(regex: String, replacement: String): Unit
Implicitly added by toMutableSeriesString
See also

String.replaceFirst

Since

0.1.0

def resetIndex: Unit

Resets the index to a UniformIndex with index positions 0 to numRows - 1 while keeping the order of the elements. If the current index is not a uniform index, the data is copied into a new vector with the order of the current index.

Resets the index to a UniformIndex with index positions 0 to numRows - 1 while keeping the order of the elements. If the current index is not a uniform index, the data is copied into a new vector with the order of the current index.

See also

sortIndex for sorting the index by index positions.

Since

0.1.0

Note

Result: Series with a UniformIndex.

def rint: Unit
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def round: Series[Int]
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def series: Series[T]

Converts the MutableSeries into an immutable Series without copying its content, The data is "ejected" from the mutable instance by overwriting it with an empty Series. After calling this method on instance series

Converts the MutableSeries into an immutable Series without copying its content, The data is "ejected" from the mutable instance by overwriting it with an empty Series. After calling this method on instance series

series.isEmpty

returns true.

series.isEmpty }}}

Returns

A Series object.

See also
Since

0.1.0

inline def set(ix: Int, value: T): Unit

Sets the value at index ix.

Sets the value at index ix.

Value Params
ix

Row index.

Returns

Value to be set.

Throws
NoSuchElementException

If ix is not in the index.

See also
Since

0.1.0

Note

The access is constant time. Potentially the first set access to a sequential index can be non-constant time.

def show(n: Int, annotateIndex: Boolean, annotateType: Boolean, colWidth: Int): Unit

Prints the Series as a table.

Prints the Series as a table.

Value Params
annotateIndex

If true, the an index column is displayed.

annotateType

If true, the type for each column in displayed.

colWidth

The width of the column.

n

The maximal numbers of rows.

See also
Since

0.1.0

def showValues(n: Int): Unit

Prints all values of the Series.

Prints all values of the Series.

Value Params
n

The maximal numbers of rows to be printed or -1 (default) for all values.

See also
Since

0.1.0

def sorted(implicit ordering: Ordering[T]): Unit

Sorts the Series in ascending order.

Sorts the Series in ascending order.

Value Params
ordering

Implicit ordering that must exist for the type T, i.e. classes must extend the trait Ordered.

Since

0.1.0

Note

Result: Series with sorted index.

  • The sorting algorithm is stable.
  • String values are sorted lexicographically ignoring case differences (see String.compareToIgnoreCase).
def sorted(order: Order)(implicit ordering: Ordering[T]): Unit

Sorts the Series.

Sorts the Series.

Value Params
order

Order for sorting. Possible values are Order.asc, Order.desc, Order.ascNullsFirst and Order.descNullsFirst.

ordering

Implicit ordering that must exist for the type T, i.e. classes must extend the trait Ordered.

Since

0.1.0

Note

Result: Series with sorted index.

  • The sorting algorithm is stable.
  • String values are sorted lexicographically ignoring case differences (see String.compareToIgnoreCase).
def split(regex: String, limit: Int): Series[Array[String]]
Implicitly added by toMutableSeriesString
See also

String.split

Since

0.1.0

def startsWith(s: String, beginIndex: Int): Series[Boolean]
Implicitly added by toMutableSeriesString
See also

String.startsWith

Since

0.1.0

def str: Series[String]

Converts the Series row-wise into a String Series.

Converts the Series row-wise into a String Series.

Returns

Series of type String.

Since

0.1.0

Note
  • The operation maps each element via toString to a String.
  • If the Series is of type String the Series is returned.
def substring(beginIndex: Int): Unit
Implicitly added by toMutableSeriesString
Returns

Sub string or empty string if out of bounds.

See also

String.substring

Since

0.1.0

def substring(beginIndex: Int, endIndex: Int): Unit
Implicitly added by toMutableSeriesString
Returns

Sub string or empty string if out of bounds.

See also

String.substring

Since

0.1.0

def sum: Int
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def sum: Double
Implicitly added by toMutableSeriesDouble
Since

0.1.0

def sum: Int
Implicitly added by toMutableSeriesInt
Since

0.1.0

def toArray: Array[Option[T]]

Copies the Series into an array.

Copies the Series into an array.

Returns

Array of type Option[T] with numRows elements.

Since

0.1.0

def toBoolean: Series[Boolean]
Implicitly added by toMutableSeriesString
Returns

Parsed Boolean Series.

Throws
java.lang.NumberFormatException

If the string does not contain a parsable Boolean.

Since

0.1.0

def toDouble: Series[Double]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def toDouble: Series[Double]
Implicitly added by toMutableSeriesInt
Since

0.1.0

def toDouble: Series[Double]
Implicitly added by toMutableSeriesString
Returns

Parsed Double Series.

Throws
java.lang.NumberFormatException

If the string does not contain a parsable Double.

Since

0.1.0

def toFlatArray: Array[T]

Copies the Series into an array.

Copies the Series into an array.

Returns

Array of type T.

Since

0.1.0

def toFlatList: List[T]

Copies the Series into a List.

Copies the Series into a List.

Returns

List of type T.

Since

0.1.0

def toFlatSeq: Seq[T]

Copies the Series into a sequence.

Copies the Series into a sequence.

Returns

Sequence of type T.

Since

0.1.0

def toFloat: Series[Float]
Implicitly added by toMutableSeriesString
Returns

Parsed Float Series.

Throws
java.lang.NumberFormatException

If the string does not contain a parsable Float.

Since

0.1.0

def toInt: Series[Int]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def toInt: Series[Int]
Implicitly added by toMutableSeriesString
Returns

Parsed Int Series.

Throws
java.lang.NumberFormatException

If the string does not contain a parsable Int.

Since

0.1.0

def toList: List[Option[T]]

Copies the Series into a List.

Copies the Series into a List.

Returns

List of type Option[T] with numRows elements.

Since

0.1.0

def toLocalDate: Series[LocalDate]
Implicitly added by toMutableSeriesString
Returns

Parsed LocalDate Series.

Throws
java.time.format.DateTimeParseException

If the string cannot be parsed.

See also

java.time.LocalDate

Since

0.1.0

def toLocalDateTime: Series[LocalDateTime]
Implicitly added by toMutableSeriesString
Returns

Parsed LocalDateTime Series.

Throws
java.time.format.DateTimeParseException

If the string cannot be parsed.

See also

java.time.LocalDateTime

Since

0.1.0

def toLocalTime: Series[LocalTime]
Implicitly added by toMutableSeriesString
Returns

Parsed LocalTime Series.

Throws
java.time.format.DateTimeParseException

If the string cannot be parsed.

See also

java.time.LocalTime

Since

0.1.0

def toLong: Series[Long]
Implicitly added by toMutableSeriesString
Returns

Parsed Long Series.

Throws
java.lang.NumberFormatException

If the string does not contain a parsable Long.

Since

0.1.0

def toSeq: Seq[Option[T]]

Copies the Series into a sequence with numRows elements.

Copies the Series into a sequence with numRows elements.

Returns

Sequence of type Option[T].

Since

0.1.0

override def toString: String

Renders the Series as a table using default parameters.

Renders the Series as a table using default parameters.

Returns

Formatted table.

Since

0.1.0

Definition Classes
Any
def toString(n: Int, colWidth: Int, annotateIndex: Boolean, annotateType: Boolean): String

Renders the Series as a table.

Renders the Series as a table.

Value Params
annotateIndex

If true, the an index column is displayed.

annotateType

If true, the type for each column in displayed.

colWidth

The width of each column.

n

The maximal numbers of rows.

Returns

Formatted table.

Since

0.1.0

def toZonedDateTime: Series[ZonedDateTime]
Implicitly added by toMutableSeriesString
Returns

Parsed ZonedDateTime Series.

Throws
java.time.format.DateTimeParseException

If the string cannot be parsed.

See also

java.time.ZonedDateTime

Since

0.1.0

def trimString: Unit
Implicitly added by toMutableSeriesString
See also

String.trim

Since

0.1.0

def typeString: String

Returns the (internal) runtime Scala type of the Series.

Returns the (internal) runtime Scala type of the Series.

Returns

Type name such as "Int", "MyClass", "Any", "Array[Double]", "List", "Seq", etc.

Since

0.1.0

Note
  • There is no deep type reflection for 2nd order types except for Array.
  • When casting a Series to Any (via pd.implicits.SeriesAny.toAny), the internal type of the Series does not change.
@targetName("notOperator")
def unary_!: Series[Boolean]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

def unset(ix: Int): Unit

Sets the value at index ix to undefined (null). If ix is not in the index but within the base index, the index is expanded to the uniform base index.

Sets the value at index ix to undefined (null). If ix is not in the index but within the base index, the index is expanded to the uniform base index.

Value Params
ix

Row index.

Throws
IndexBoundsException

If ix is not part of the base index.

See also
Since

0.1.0

Note

The access is constant time with the exception of the first unset access to a sequential index or the (one-time) expansion of the index.

def update[T2 <: T](series: Series[T2]): Unit

Updates the series with values from the second series if the values are defined.

Updates the series with values from the second series if the values are defined.

Value Params
series

Series with the same base index.

Since

0.1.0

Note

Result: Series with data from parameter series or if a value is undefined in series from the original series. The original index is not altered.

def upper: Unit
Implicitly added by toMutableSeriesString
See also

String.toUpperCase

Since

0.1.0

@targetName("orOperator")
def ||(series: SeriesBoolean): Series[Boolean]
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

@targetName("orAssign")
def ||=(series: SeriesBoolean): Unit
Implicitly added by toMutableSeriesBoolean
Since

0.1.0

Inherited methods

def apply(series: Series[Boolean]): Unit

Slices the index by intersecting the current index with a boolean Series.

Slices the index by intersecting the current index with a boolean Series.

Value Params
series

Boolean Series as mask, where only index positions kept that are true.

Returns

Object with sliced index and order of series.

See also
Since

0.1.0

Inherited from
IndexOps
def apply(array: Array[Int]): Unit

Slices the index by intersecting it with an array of index positions.

Slices the index by intersecting it with an array of index positions.

Value Params
array

Array of index positions.

Returns

Object with sliced index and order of array.

See also
Since

0.1.0

Inherited from
IndexOps
def apply(seq: Seq[Int]): Unit

Slices the index by intersecting it with a sequence of index positions.

Slices the index by intersecting it with a sequence of index positions.

Value Params
seq

Sequence of index positions.

Returns

Object with sliced index and order of seq.

See also
Since

0.1.0

Inherited from
IndexOps
def apply(range: Range): Unit

Slices the index by intersecting it with a range.

Slices the index by intersecting it with a range.

Value Params
range

Range.

Returns

Object with sliced index with ascending order.

See also
Since

0.1.0

Inherited from
IndexOps
def head(n: Int): Unit

Head of object.

Head of object.

Value Params
n

Number of rows.

Returns

First n rows in index.

See also
Since

0.1.0

Inherited from
IndexOps
def sortIndex: Unit

Sorts the index (ascending).

Sorts the index (ascending).

Returns

Object with sorted index.

See also
Since

0.1.0

Inherited from
IndexOps
def tail(n: Int): Unit

Tail of object.

Tail of object.

Value Params
n

Number of rows.

Returns

Last n rows in index.

See also
Since

0.1.0

Inherited from
IndexOps