Series

object Series
class Object
trait Matchable
class Any

Type members

Classlikes

class MutableSeriesBuilder(name: String)
class SeriesBuilder(name: String)

Value members

Concrete methods

def apply[T](values: T | Null*)(implicit evidence$18: ClassTag[T]): Series[T]

Creates a Series from values. Undefined values are symbolized by null.

Creates a Series from values. Undefined values are symbolized by null.

Value Params
values

Values of the Series.

Returns

Created Series.

See also
Since

0.1.0

Note
  • The Series is null safe, i.e. null values are not stored but represented internally by a mask.
  • The type of, e.g., Series(1, null, 3) is of type Series[Int] and is implemented as a primitive type.
  • Automatic type casting in the argument list works only without null values, i.e. Series(1, 1.1) and Series(1, null, 1.1) is of type Series[Double] whereas Series(1, null ,1.1) is of type Series[Any].
def apply(name: String): SeriesBuilder

Creates a Series with a name, where a second parameter takes the values (see SeriesBuilder.apply).

Creates a Series with a name, where a second parameter takes the values (see SeriesBuilder.apply).

Value Params
name

Name of the Series.

Returns

SeriesBuilder which takes the values.

See also
Since

0.1.0

def empty[T](implicit evidence$19: ClassTag[T]): Series[T]

Creates an empty Series of type T.

Creates an empty Series of type T.

Returns

Empty Series.

Since

0.1.0

def empty[T](length: Int)(implicit evidence$20: ClassTag[T]): Series[T]

Creates an empty Series of type T.

Creates an empty Series of type T.

Value Params
length

Length of the Series.

Returns

Empty Series.

Since

0.1.0

def fill[T](length: Int)(value: T)(implicit evidence$21: ClassTag[T]): Series[T]

Creates an Series of length length with the given value.

Creates an Series of length length with the given value.

Value Params
length

Length of the Series.

value

Value for all elements.

Returns

New Series.

Since

0.1.0

def from[T](data: Array[T]): Series[T]

Creates a Series from a collection of data.

Creates a Series from a collection of data.

Value Params
data

Collection.

Returns

Created Series.

Since

0.1.0

def from[T](data: Buffer[T])(implicit evidence$22: ClassTag[T]): Series[T]

Creates a Series from a collection of data.

Creates a Series from a collection of data.

Value Params
data

Collection.

Returns

Created Series.

Since

0.1.0

def from[T](data: Seq[T])(implicit evidence$23: ClassTag[T]): Series[T]

Creates a Series from a collection of data.

Creates a Series from a collection of data.

Value Params
data

Collection.

Returns

Created Series.

Since

0.1.0

@targetName("fromOption")
def from[T](data: Array[Option[T]])(implicit evidence$24: ClassTag[T]): Series[T]

Creates a Series from a collection of Option data, where the Option is unpacked.

Creates a Series from a collection of Option data, where the Option is unpacked.

Value Params
data

Collection of type Option[T].

Returns

Created Series of type T.

Since

0.1.0

@targetName("fromOption")
def from[T](data: Seq[Option[T]])(implicit evidence$25: ClassTag[T]): Series[T]

Creates a Series from a collection of Option data, where the Option is unpacked.

Creates a Series from a collection of Option data, where the Option is unpacked.

Value Params
data

Collection of type Option[T].

Returns

Created Series of type T.

Since

0.1.0

def mutable[T](values: T | Null*)(implicit evidence$26: ClassTag[T]): MutableSeries[T]

Creates a mutable Series from values. Undefined values are symbolized by null.

Creates a mutable Series from values. Undefined values are symbolized by null.

Value Params
values

Values of the Series.

Returns

Created MutableSeries.

See also
Since

0.1.0

Note
  • The Series is null safe, i.e. null values are not stored but represented internally by a mask.
  • The type of, e.g., Series(1, null, 3) is of type Series[Int] and is implemented as a primitive type.
  • Automatic type casting in the argument list works only without null values, i.e. Series(1, 1.1) and Series(1, null, 1.1) is of type Series[Double] whereas Series(1, null ,1.1) is of type Series[Any].
def union[T](series: Series[T]*): Series[T]

Appends row-wise one or multiple series to the first one. The method materializes all indices into a uniform index.

Appends row-wise one or multiple series to the first one. The method materializes all indices into a uniform index.

Value Params
series

Series to be appended.

Returns

Series with a uniform index.

Throws
IllegalOperation

If no series is passed.

SeriesCastException

If the underlying types are not a subtype.

Since

0.1.0

Implicits

Implicits

implicit def arrayToSeries[T](collection: Array[T])(implicit evidence$16: ClassTag[T]): Series[T]
implicit def seqToSeries[T](collection: Seq[T])(implicit evidence$17: ClassTag[T]): Series[T]
implicit def toSeriesAny(s: Series[Any]): SeriesAny
implicit def toSeriesAny(s: MutableSeries[Any]): SeriesAny
implicit inline def toSeriesAnyPrefix(v: Double): Prefix
implicit inline def toSeriesAnyPrefixInt(v: Int): PrefixInt
implicit def toSeriesBoolean(s: Series[Boolean]): SeriesBoolean
implicit def toSeriesBoolean(s: MutableSeries[Boolean]): SeriesBoolean
implicit def toSeriesDouble(s: Series[Double]): SeriesDouble
implicit def toSeriesDouble(s: MutableSeries[Double]): SeriesDouble
implicit inline def toSeriesDoublePrefix(v: Double): Prefix
implicit inline def toSeriesDoublePrefixInt(v: Int): PrefixInt
implicit def toSeriesInt(s: Series[Int]): SeriesInt
implicit def toSeriesInt(s: MutableSeries[Int]): SeriesInt
implicit inline def toSeriesIntPrefix(v: Int): Prefix
implicit inline def toSeriesIntPrefixDouble(v: Double): PrefixDouble
implicit def toSeriesLocalDate(s: Series[LocalDate]): SeriesLocalDate
implicit def toSeriesLocalDate(s: MutableSeries[LocalDate]): SeriesLocalDate
implicit def toSeriesLocalDateTime(s: Series[LocalDateTime]): SeriesLocalDateTime
implicit def toSeriesLocalTime(s: Series[LocalTime]): SeriesLocalTime
implicit def toSeriesLocalTime(s: MutableSeries[LocalTime]): SeriesLocalTime
implicit def toSeriesString(s: Series[String]): SeriesString
implicit def toSeriesString(s: MutableSeries[String]): SeriesString
implicit def toSeriesZonedDateTime(s: Series[ZonedDateTime]): SeriesZonedDateTime