Class/Object

framian

Series

Related Docs: object Series | package framian

Permalink

final class Series[K, V] extends AnyRef

Source
Series.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Series
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Series(index: Index[K], column: Column[V])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to any2stringadd[Series[K, V]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++[VV >: V](that: Series[K, VV]): Series[K, VV]

    Permalink

    Concatenates that onto the end of this Series.

  5. def ->[B](y: B): (Series[K, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to ArrowAssoc[Series[K, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def apply(key: K): Cell[V]

    Permalink
    Annotations
    @inline()
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def cellAt(i: Int): Cell[V]

    Permalink
    Annotations
    @inline()
  10. def cellMap[W](f: (Cell[V]) ⇒ Cell[W]): Series[K, W]

    Permalink

    Transforms the cells in this series using f.

  11. def cellMapWithKeys[W](f: (K, Cell[V]) ⇒ Cell[W]): Series[K, W]

    Permalink

    Transforms the cells, indexed by their key, in this series using f.

  12. def cells: Vector[Cell[V]]

    Permalink

    Return the cells of this series as a vector in index order.

    Return the cells of this series as a vector in index order.

    The series may be sparse, so the vector contains Cells rather than just plain values.

    returns

    a sparse vector of the values of the series.

    See also

    values

    keys

  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def closestKeyTo(k: K, tolerance: Double)(implicit K0: MetricSpace[K, Double], K1: Order[K]): Option[K]

    Permalink
  15. val column: Column[V]

    Permalink
  16. def combine[W, X](that: Series[K, W])(left: (V) ⇒ X, right: (W) ⇒ X, both: (V, W) ⇒ X): Series[K, X]

    Permalink

    Combines 2 series together using the functions provided to handle each case.

    Combines 2 series together using the functions provided to handle each case. If a value exists in both this and that, then both is used to combine the value to a new one, otherwise either left or right are used, unless both are missing, then the missing value is returned (NA is both are NA and NM otherwise).

  17. def compacted: Series[K, V]

    Permalink

    Returns a compacted version of this Series.

    Returns a compacted version of this Series. The new series will be equal to the old one, but the backing column will be dropped and replaced with a version that only contains the values needed for this series. It will also remove any indirection in the underlying column, such as that caused by reindexing, shifting, mapping values, etc.

  18. def count: Cell[Int]

    Permalink

    Returns the framian.reduce.Count reduction of this series.

    Returns the framian.reduce.Count reduction of this series.

    returns

    the framian.reduce.Count reduction of this series.

    See also

    framian.reduce.Count

  19. def countByKey: Series[K, Int]

    Permalink

    Returns the framian.reduce.Count reduction of this series by key.

    Returns the framian.reduce.Count reduction of this series by key.

    returns

    the framian.reduce.Count reduction of this series by key.

    See also

    framian.reduce.Count

  20. def denseIterator: Iterator[(K, V)]

    Permalink

    Returns an iterator over the key-value pairs of the series.

    Returns an iterator over the key-value pairs of the series.

    This iterator assumes that the series is dense, so it will skip over any non value cells if, in fact, the series is sparse.

    returns

    an iterator over the key-value pairs of the series.

    Note

    The Iterator returned by this method is related to the Iterator returned by iterator

    series.iterator.collect { case (k, Value(v)) => k -> v} == series.denseIterator

    however, this method uses a more efficient access pattern to the underlying data.

    See also

    iterator

  21. def ensuring(cond: (Series[K, V]) ⇒ Boolean, msg: ⇒ Any): Series[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to Ensuring[Series[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (Series[K, V]) ⇒ Boolean): Series[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to Ensuring[Series[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: ⇒ Any): Series[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to Ensuring[Series[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): Series[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to Ensuring[Series[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def equals(that0: Any): Boolean

    Permalink
    Definition Classes
    Series → AnyRef → Any
  27. def exists(p: (V) ⇒ Boolean): Boolean

    Permalink

    Returns the framian.reduce.Exists reduction of this series.

    Returns the framian.reduce.Exists reduction of this series.

    returns

    the framian.reduce.Exists reduction of this series.

    See also

    forall

    framian.reduce.Exists

  28. def existsByKey(p: (V) ⇒ Boolean): Series[K, Boolean]

    Permalink

    Returns the framian.reduce.Exists reduction of this series by key.

    Returns the framian.reduce.Exists reduction of this series by key.

    returns

    the framian.reduce.Exists reduction of this series by key.

    See also

    forall

    framian.reduce.Exists

  29. def filterByCells(p: (Cell[V]) ⇒ Boolean): Series[K, V]

    Permalink

    Select all key-cell pairs of this series where the cells satisfy a predicate.

    Select all key-cell pairs of this series where the cells satisfy a predicate.

    This method preserves the orderedness of the underlying index.

    p

    the predicate used to test cells.

    returns

    a new series consisting of all key-call pairs of this series where the cells satisfy the given predicate p.

    Note

    This method is a specialized and optimized version of filterEntries, where

    s.filterEntries { (_, c) => p(c) } == s.filterByCells(p)
    See also

    filterByValues

    filterByKeys

    filterEntries

  30. def filterByKeys(p: (K) ⇒ Boolean): Series[K, V]

    Permalink

    Select all key-cell pairs of this series where the keys satisfy a predicate.

    Select all key-cell pairs of this series where the keys satisfy a predicate.

    This method preserves the orderedness of the underlying index.

    p

    the predicate used to test keys.

    returns

    a new series consisting of all key-call pairs of this series where the keys satisfy the given predicate p.

    Note

    This method is a specialized and optimized version of filterEntries, where

    s.filterEntries { (k, _) => p(k) } == s.filterByKeys(p)
    See also

    filterByValues

    filterByCells

    filterEntries

  31. def filterByValues(p: (V) ⇒ Boolean): Series[K, V]

    Permalink

    Selects all key-value pairs of this series where the values satisfy a predicate.

    Selects all key-value pairs of this series where the values satisfy a predicate.

    This method preserves the orderedness of the underlying index. It also assumes this series is dense, so any non values will also be filtered out. The column that backs the new series will be dense.

    p

    the predicate used to test values.

    returns

    a new series consisting of all key-value pairs of this series where the values satisfy the given predicate p.

    Note

    This method is a specialized and optimized version of filterEntries, where

    s.filterEntries {
      case (_, Value(v)) => p(v)
      case _ => false
    } == s.filterByValues(p)
    See also

    filterByCells

    filterByKeys

    filterEntries

  32. def filterEntries(p: (K, Cell[V]) ⇒ Boolean): Series[K, V]

    Permalink

    Select all key-cell pairs of this series where the pairs satisfy a predicate.

    Select all key-cell pairs of this series where the pairs satisfy a predicate.

    This method preserves the orderedness of the underlying index.

    p

    the predicate used to test key-cell pairs.

    returns

    a new series consisting of all key-cell pairs of this series where the pairs satisfy the given predicate p.

    See also

    filterByValues

    filterByCells

    filterByKeys

  33. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def findAsc[B](f: (K, Column[V], Int) ⇒ Option[B]): Option[B]

    Permalink

    Returns the first defined result of f when scanning the series in acending order.

    Returns the first defined result of f when scanning the series in acending order.

    The parameter f is predicate on the key-values pairs of the series; however, it also returns a value when satisfied, hence the return type of Option[B].

    To ensure efficient access to the values of the series, the predicate is supplied with the column and the index into the column, rather than the cell. (Contrast (K, Cell[V]) to (K, Column[V], Int)).

    B

    the return type of the predicate

    f

    a predicate on key–value pairs in the series that returns a value when satisfied

    returns

    the first defined result of f when scanning the series in acending order.

    Example:
    1. findFirstValue is defined as,

      findAsc((key, col, row) =>
        if (col.isValueAt(row))
          Some(key -> column.valueAt(row))
        else
          None
      )
    See also

    findDesc

  35. def findDesc[B](f: (K, Column[V], Int) ⇒ Option[B]): Option[B]

    Permalink

    Returns the first defined result of f when scanning the series in descending order.

    Returns the first defined result of f when scanning the series in descending order.

    The parameter f is predicate on the key-values pairs of the series; however, it also returns a value when satisfied, hence the return type of Option[B].

    To ensure efficient access to the values of the series, the predicate is supplied with the column and the index into the column, rather than the cell. (Contrast (K, Cell[V]) to (K, Column[V], Int)).

    B

    the return type of the predicate

    f

    a predicate on key–value pairs in the series that returns a value when satisfied

    returns

    the first defined result of f when scanning the series in descending order.

    Example:
    1. findLastValue is defined as,

      findDesc((key, col, row) =>
        if (col.isValueAt(row))
          Some(key -> col.valueAt(row))
        else
          None
      )
    See also

    findAsc

  36. def findFirstValue: Option[(K, V)]

    Permalink

    Returns the first key-value in the series.

    Returns the first key-value in the series.

    The returned key-value pair is the first in the series where the value is both available and meaningful.

    returns

    the first key-value in the series.

    See also

    findAsc

    findLastValue

  37. def findLastValue: Option[(K, V)]

    Permalink

    Returns the last key-value in the series.

    Returns the last key-value in the series.

    The returned key-value pair is the last in the series where the value is both available and meaningful.

    returns

    the last key-value in the series.

    See also

    findDesc

    findFirstValue

  38. def first: Cell[V]

    Permalink

    Returns the framian.reduce.First reduction of this series.

    Returns the framian.reduce.First reduction of this series.

    returns

    the framian.reduce.First reduction of this series.

    See also

    last

    firstN

    framian.reduce.First

  39. def firstByKey: Series[K, V]

    Permalink

    Returns the framian.reduce.First reduction of this series by key.

    Returns the framian.reduce.First reduction of this series by key.

    returns

    the framian.reduce.First reduction of this series by key.

    See also

    last

    firstN

    framian.reduce.First

  40. def firstN(n: Int): Cell[List[V]]

    Permalink

    Returns the framian.reduce.FirstN reduction of this series.

    Returns the framian.reduce.FirstN reduction of this series.

    returns

    the framian.reduce.FirstN reduction of this series.

    See also

    lastN

    first

    framian.reduce.FirstN

  41. def firstNByKey(n: Int): Series[K, List[V]]

    Permalink

    Returns the framian.reduce.FirstN reduction of this series by key.

    Returns the framian.reduce.FirstN reduction of this series by key.

    returns

    the framian.reduce.FirstN reduction of this series by key.

    See also

    lastN

    first

    framian.reduce.FirstN

  42. def flatMapCell[W](f: (V) ⇒ Cell[W]): Series[K, W]

    Permalink

    Map the value of this series to a cell.

    Map the value of this series to a cell. This allows values to be turned into NonValues (ie. NA and NM).

  43. def forall(p: (V) ⇒ Boolean): Boolean

    Permalink

    Returns the framian.reduce.ForAll reduction of this series.

    Returns the framian.reduce.ForAll reduction of this series.

    returns

    the framian.reduce.ForAll reduction of this series.

    See also

    exists

    framian.reduce.ForAll

  44. def forallByKey(p: (V) ⇒ Boolean): Series[K, Boolean]

    Permalink

    Returns the framian.reduce.ForAll reduction of this series by key.

    Returns the framian.reduce.ForAll reduction of this series by key.

    returns

    the framian.reduce.ForAll reduction of this series by key.

    See also

    exists

    framian.reduce.ForAll

  45. def foreach[U](f: (K, Cell[V]) ⇒ U): Unit

    Permalink

    Applies a function f to all key-cell pairs of the series.

    Applies a function f to all key-cell pairs of the series.

    The series is traversed in index order.

    f

    the function that is applied for its side-effect to every key-cell pair. The result of the function f is discarded

    See also

    foreachValues

    foreachKeys

    foreachDense

    foreachCells

  46. def foreachCells[U](f: (Cell[V]) ⇒ U): Unit

    Permalink

    Applies a function f to all cells of the series.

    Applies a function f to all cells of the series.

    The series is traversed in index order.

    f

    the function that is applied for its side-effect to every cell. The result of the function f is discarded

    See also

    foreachValues

    foreachKeys

    foreachDense

    foreach

  47. def foreachDense[U](f: (K, V) ⇒ U): Unit

    Permalink

    Applies a function f to all key-value pairs of the series.

    Applies a function f to all key-value pairs of the series.

    The series is traversed in index order.

    This method assumes that the series is dense, so it will skip over any non value cells if, in fact, the series is sparse.

    f

    the function that is applied for its side-effect to every key-value pair. The result of the function f is discarded

    See also

    foreachValues

    foreachKeys

    foreachCells

    foreach

  48. def foreachKeys[U](f: (K) ⇒ U): Unit

    Permalink

    Applies a function f to all keys of the series.

    Applies a function f to all keys of the series.

    The series is traversed in index order.

    f

    the function that is applied for its side-effect to every key. The result of the function f is discarded

    See also

    foreachValues

    foreachDense

    foreachCells

    foreach

  49. def foreachValues[U](f: (V) ⇒ U): Unit

    Permalink

    Applies a function f to all values of the series.

    Applies a function f to all values of the series.

    The series is traversed in index order.

    This method assumes that the series is dense, so it will skip over any non value cells if, in fact, the series is sparse.

    f

    the function that is applied for its side-effect to every value. The result of the function f is discarded

    See also

    foreachKeys

    foreachDense

    foreachCells

    foreach

  50. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to StringFormat[Series[K, V]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  51. def getCells(key: K): Vector[Cell[V]]

    Permalink

    Returns all cells with with key of key.

  52. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  53. def getValues(key: K): Vector[V]

    Permalink

    Returns all values with with key of key.

  54. def hasValues: Boolean

    Permalink

    Returns true if at least 1 value exists in this series.

    Returns true if at least 1 value exists in this series. A series with only NAs and/or NMs will return false.

  55. def hashCode(): Int

    Permalink
    Definition Classes
    Series → AnyRef → Any
  56. def histogram(min: V, max: V, stepSize: V)(implicit g: AdditiveSemigroup[V], o: Order[V], ct: ClassTag[V]): Series[(V, V), Int]

    Permalink

    Computes a histogram of the values in this series.

    Computes a histogram of the values in this series. This will create contiguous, disjoint buckets starting from min, each with width stepSize, except for (possibly) the last. So, we could represent the buckets like this,

    [min, min + stepSize), [min + 2 * stepSize), ..., [min + k * stepSize, max]

    You'll note that the last bucket *includes* max. For each bucket, we calculate the number of values from this series that fall within it. The Series returned is keyed by a tuple of the start and end of each bucket (keep in mind only the last bucket is inclusive on the right).

    min

    the maximum value to include in the histogram (inclusive)

    stepSize

    the width of each bucket, starting from min

    returns

    a series keyed by the buckets, with values being the count of items

  57. def histogram(stepSize: V)(implicit g: AdditiveSemigroup[V], o: Order[V], ct: ClassTag[V]): Series[(V, V), Int]

    Permalink

    Compute a histogram of the values in this series, using a bucket width of stepSize.

    Compute a histogram of the values in this series, using a bucket width of stepSize. This just calls histogram(min, max, stepSize), where min and max are the minimum and maximum values in this series.

    stepSize

    the width of each bucket, starting from minimum value in this series

    returns

    a series keyed by the buckets, with values being the count of items

  58. val index: Index[K]

    Permalink
  59. def isEmpty: Boolean

    Permalink

    Returns true if the series is logically empty.

    Returns true if the series is logically empty. That is, just in case none of its rows contain a value. Presently, both NAs and NMs are not considered to be values.

  60. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  61. def iterator: Iterator[(K, Cell[V])]

    Permalink

    Returns an iterator over the key-cell pairs of the series.

    Returns an iterator over the key-cell pairs of the series.

    returns

    an iterator over the key-cell pairs of the series.

    Note

    If the series is known to be dense, or the non values can ignored, then one should use denseIterator instead.

    See also

    denseIterator

  62. def keyAt(i: Int): K

    Permalink
    Annotations
    @inline()
  63. def keys: Vector[K]

    Permalink

    Returns the keys of this series as a vector in index order.

    Returns the keys of this series as a vector in index order.

    returns

    a vector of the keys of the series.

    See also

    values

    cells

  64. def last: Cell[V]

    Permalink

    Returns the framian.reduce.Last reduction of this series.

    Returns the framian.reduce.Last reduction of this series.

    returns

    the framian.reduce.Last reduction of this series.

    See also

    first

    lastN

    framian.reduce.Last

  65. def lastByKey: Series[K, V]

    Permalink

    Returns the framian.reduce.Last reduction of this series by key.

    Returns the framian.reduce.Last reduction of this series by key.

    returns

    the framian.reduce.Last reduction of this series by key.

    See also

    first

    lastN

    framian.reduce.Last

  66. def lastN(n: Int): Cell[List[V]]

    Permalink

    Returns the framian.reduce.LastN reduction of this series.

    Returns the framian.reduce.LastN reduction of this series.

    returns

    the framian.reduce.LastN reduction of this series.

    See also

    firstN

    last

    framian.reduce.LastN

  67. def lastNByKey(n: Int): Series[K, List[V]]

    Permalink

    Returns the framian.reduce.LastN reduction of this series by key.

    Returns the framian.reduce.LastN reduction of this series by key.

    returns

    the framian.reduce.LastN reduction of this series by key.

    See also

    firstN

    last

    framian.reduce.LastN

  68. def mapKeys[L](f: (K) ⇒ L)(implicit arg0: Order[L], arg1: ClassTag[L]): Series[L, V]

    Permalink

    Map the keys of this series.

    Map the keys of this series. This will maintain the same iteration order as the old series.

  69. def mapValues[W](f: (V) ⇒ W): Series[K, W]

    Permalink

    Map the values of this series only.

    Map the values of this series only. Note that the function f will be called every time a value is accessed. To prevent this, you must compact the Series.

  70. def mapValuesWithKeys[W](f: (K, V) ⇒ W): Series[K, W]

    Permalink

    Map the values of this series, using both the *key* and *value* of each cell.

  71. def max(implicit ev0: Order[V]): Cell[V]

    Permalink

    Returns the framian.reduce.Max reduction of this series.

    Returns the framian.reduce.Max reduction of this series.

    returns

    the framian.reduce.Max reduction of this series.

    See also

    min

    framian.reduce.Max

  72. def maxByKey(implicit ev0: Order[V]): Series[K, V]

    Permalink

    Returns the framian.reduce.Max reduction of this series by key.

    Returns the framian.reduce.Max reduction of this series by key.

    returns

    the framian.reduce.Max reduction of this series by key.

    See also

    min

    framian.reduce.Max

  73. def mean(implicit ev0: Field[V]): Cell[V]

    Permalink

    Returns the framian.reduce.Mean reduction of this series.

    Returns the framian.reduce.Mean reduction of this series.

    returns

    the framian.reduce.Mean reduction of this series.

    See also

    median

    framian.reduce.Mean

  74. def meanByKey(implicit ev0: Field[V]): Series[K, V]

    Permalink

    Returns the framian.reduce.Mean reduction of this series by key.

    Returns the framian.reduce.Mean reduction of this series by key.

    returns

    the framian.reduce.Mean reduction of this series by key.

    See also

    median

    framian.reduce.Mean

  75. def median(implicit ev0: ClassTag[V], ev1: Field[V], ev2: Order[V]): Cell[V]

    Permalink

    Returns the framian.reduce.Median reduction of this series.

    Returns the framian.reduce.Median reduction of this series.

    returns

    the framian.reduce.Median reduction of this series.

    See also

    mean

    framian.reduce.Median

  76. def medianByKey(implicit ev0: ClassTag[V], ev1: Field[V], ev2: Order[V]): Series[K, V]

    Permalink

    Returns the framian.reduce.Median reduction of this series by key.

    Returns the framian.reduce.Median reduction of this series by key.

    returns

    the framian.reduce.Median reduction of this series by key.

    See also

    mean

    framian.reduce.Median

  77. def merge[VV >: V](that: Series[K, VV])(implicit arg0: Semigroup[VV], arg1: ClassTag[VV]): Series[K, VV]

    Permalink

    Merges 2 series together using a semigroup to append values.

  78. def min(implicit ev0: Order[V]): Cell[V]

    Permalink

    Returns the framian.reduce.Min reduction of this series.

    Returns the framian.reduce.Min reduction of this series.

    returns

    the framian.reduce.Min reduction of this series.

    See also

    max

    framian.reduce.Min

  79. def minByKey(implicit ev0: Order[V]): Series[K, V]

    Permalink

    Returns the framian.reduce.Min reduction of this series by key.

    Returns the framian.reduce.Min reduction of this series by key.

    returns

    the framian.reduce.Min reduction of this series by key.

    See also

    max

    framian.reduce.Min

  80. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  81. def normalizedHistogram[A](min: V, max: V, stepSize: V)(implicit arg0: Field[A], g: AdditiveSemigroup[V], o: Order[V], ct: ClassTag[V]): Series[(V, V), A]

    Permalink

    Computes a normalized histogram of the values in this series.

    Computes a normalized histogram of the values in this series. This will create contiguous, disjoint buckets starting from min, each with width stepSize, except for (possibly) the last. So, we could represent the buckets like this,

    [min, min + stepSize), [min + 2 * stepSize), ..., [min + k * stepSize, max]

    You'll note that the last bucket *includes* max. For each bucket, we calculate the number of values from this series that fall within it. The Series returned is keyed by a tuple of the start and end of each bucket (keep in mind only the last bucket is inclusive on the right). The values are the proportion of values that fell into that bucket, as a percentage of the total size of this series - including NAs and NMs.

    min

    the maximum value to include in the histogram (inclusive)

    stepSize

    the width of each bucket, starting from min

    returns

    a series keyed by the buckets, with values being the count of items

  82. def normalizedHistogram[A](stepSize: V)(implicit arg0: Field[A], g: AdditiveSemigroup[V], o: Order[V], ct: ClassTag[V]): Series[(V, V), A]

    Permalink

    Compute a histogram of the values in this series, using a bucket width of stepSize.

    Compute a histogram of the values in this series, using a bucket width of stepSize. This just calls histogram(min, max, stepSize), where min and max are the minimum and maximum values in this series. The values are the proportion of values that fell into that bucket, as a percentage of the total size of this series - including NAs and NMs.

    stepSize

    the width of each bucket, starting from minimum value in this series

    returns

    a series keyed by the buckets, with values being the count of items

  83. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  84. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  85. def orElse[VV >: V](that: Series[K, VV]): Series[K, VV]

    Permalink

    Merges 2 series together, taking the first non-NA or NM value.

  86. def product(implicit ev0: MultiplicativeMonoid[V]): Cell[V]

    Permalink

    Returns the MultiplicativeMonoid reduction of this series.

    Returns the MultiplicativeMonoid reduction of this series.

    returns

    the MultiplicativeMonoid reduction of this series.

    See also

    sum

    productNonEmpty

    framian.reduce.MonoidReducer

  87. def productByKey(implicit ev0: MultiplicativeMonoid[V]): Series[K, V]

    Permalink

    Returns the MultiplicativeMonoid reduction of this series by key.

    Returns the MultiplicativeMonoid reduction of this series by key.

    returns

    the MultiplicativeMonoid reduction of this series by key.

    See also

    sum

    productNonEmpty

    framian.reduce.MonoidReducer

  88. def productNonEmpty(implicit ev0: MultiplicativeSemigroup[V]): Cell[V]

    Permalink

    Returns the MultiplicativeSemigroup reduction of this series.

    Returns the MultiplicativeSemigroup reduction of this series.

    returns

    the MultiplicativeSemigroup reduction of this series.

    See also

    sumNonEmpty

    product

    framian.reduce.SemigroupReducer

  89. def productNonEmptyByKey(implicit ev0: MultiplicativeSemigroup[V]): Series[K, V]

    Permalink

    Returns the MultiplicativeSemigroup reduction of this series by key.

    Returns the MultiplicativeSemigroup reduction of this series by key.

    returns

    the MultiplicativeSemigroup reduction of this series by key.

    See also

    sumNonEmpty

    product

    framian.reduce.SemigroupReducer

  90. def reduce[W](reducer: Reducer[V, W]): Cell[W]

    Permalink

    Reduce all the values in this Series using the given reducer.

  91. def reduceByKey[W](reducer: Reducer[V, W]): Series[K, W]

    Permalink

    For each unique key in this series, this reduces all the values for that key and returns a series with only the unique keys and reduced values.

    For each unique key in this series, this reduces all the values for that key and returns a series with only the unique keys and reduced values. The new series will be in key order.

  92. def rollForward: Series[K, V]

    Permalink

    Rolls values and NMs forward, over NAs.

    Rolls values and NMs forward, over NAs. This is similar to rollForwardUpTo, but has no bounds checks. In fact, this is exactly equivalent to series.rollForwardUpTo(1)(TrivialMetricSpace[K], Order[Int]).

  93. def rollForwardUpTo[R](delta: R)(implicit K: MetricSpace[K, R], R: Order[R]): Series[K, V]

    Permalink

    Roll-forward values and NMs over NAs.

    Roll-forward values and NMs over NAs. It will rolls values in sequence order (not sorted order). It will only roll over NAs whose key is within delta of the last valid value or NM. This bounds check is inclusive.

    An example of this behaviour is as follows:

    Series(1 -> "a", 2 -> NA, 3 -> NA, 4 -> NM, 5 -> NA, 6 -> NA).rollForwardUpTo(1D) ===
        Series(1 -> "a", 2 -> "a", 3 -> NA, 4 -> NM, 5 -> NM, 6 -> NA)
  94. def size: Int

    Permalink
    Annotations
    @inline()
  95. def sorted: Series[K, V]

    Permalink

    Sort this series by index keys and return it.

    Sort this series by index keys and return it. The sort should be stable, so the relative order within a key will remain the same.

  96. def sum(implicit ev0: AdditiveMonoid[V]): Cell[V]

    Permalink

    Returns the AdditiveMonoid reduction of this series.

    Returns the AdditiveMonoid reduction of this series.

    returns

    the AdditiveMonoid reduction of this series.

    See also

    product

    sumNonEmpty

    framian.reduce.MonoidReducer

  97. def sumByKey(implicit ev0: AdditiveMonoid[V]): Series[K, V]

    Permalink

    Returns the AdditiveMonoid reduction of this series by key.

    Returns the AdditiveMonoid reduction of this series by key.

    returns

    the AdditiveMonoid reduction of this series by key.

    See also

    product

    sumNonEmpty

    framian.reduce.MonoidReducer

  98. def sumNonEmpty(implicit ev0: AdditiveSemigroup[V]): Cell[V]

    Permalink

    Returns the AdditiveSemigroup reduction of this series.

    Returns the AdditiveSemigroup reduction of this series.

    returns

    the AdditiveSemigroup reduction of this series.

    See also

    productNonEmpty

    sum

    framian.reduce.SemigroupReducer

  99. def sumNonEmptyByKey(implicit ev0: AdditiveSemigroup[V]): Series[K, V]

    Permalink

    Returns the AdditiveSemigroup reduction of this series by key.

    Returns the AdditiveSemigroup reduction of this series by key.

    returns

    the AdditiveSemigroup reduction of this series by key.

    See also

    productNonEmpty

    sum

    framian.reduce.SemigroupReducer

  100. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  101. def to[CC[_]](implicit cbf: CanBuildFrom[Nothing, (K, Cell[V]), CC[(K, Cell[V])]]): CC[(K, Cell[V])]

    Permalink

    Returns this series as a collection of key/value pairs.

  102. def toFrame(implicit tt: ClassTag[V]): Frame[K, Int]

    Permalink
  103. def toFrame[C](col: C)(implicit arg0: Order[C], arg1: ClassTag[C], tt: ClassTag[V]): Frame[K, C]

    Permalink

    Convert this Series to a single column Frame.

  104. def toString(): String

    Permalink
    Definition Classes
    Series → AnyRef → Any
  105. def unique: Cell[Set[V]]

    Permalink

    Returns the framian.reduce.Unique reduction of this series.

    Returns the framian.reduce.Unique reduction of this series.

    returns

    the framian.reduce.Unique reduction of this series.

    See also

    framian.reduce.Unique

  106. def uniqueByKey: Series[K, Set[V]]

    Permalink

    Returns the framian.reduce.Unique reduction of this series by key.

    Returns the framian.reduce.Unique reduction of this series by key.

    returns

    the framian.reduce.Unique reduction of this series by key.

    See also

    framian.reduce.Unique

  107. def valueAt(i: Int): V

    Permalink
  108. def values: Vector[V]

    Permalink

    Returns the values of this series as a vector in index order.

    Returns the values of this series as a vector in index order.

    If the series is dense, this returns the values directly, rather than wrapped in Cell. If the series is infact sparse, the NonValues are ignored.

    returns

    a dense vector of the values of the series.

    Note

    The Vector returned by this method is related to the Vector returned by values

    series.cells.collect { case Value(v) => v } == series.values

    however, this method uses a more efficient access pattern to the underlying data.

    See also

    values

    keys

  109. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  111. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  112. def zip[W](that: Series[K, W]): Series[K, (V, W)]

    Permalink

    Perform an inner join with that and group the values in tuples.

    Perform an inner join with that and group the values in tuples.

    Equivalent to calling lhs.zipMap(rhs)((_, _)).

  113. def zipMap[W, X](that: Series[K, W])(f: (V, W) ⇒ X): Series[K, X]

    Permalink

    Performs an inner join on this Series with that.

    Performs an inner join on this Series with that. Each pair of values for a matching key is passed to f.

  114. def [B](y: B): (Series[K, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Series[K, V] to ArrowAssoc[Series[K, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Series[K, V] to any2stringadd[Series[K, V]]

Inherited by implicit conversion StringFormat from Series[K, V] to StringFormat[Series[K, V]]

Inherited by implicit conversion Ensuring from Series[K, V] to Ensuring[Series[K, V]]

Inherited by implicit conversion ArrowAssoc from Series[K, V] to ArrowAssoc[Series[K, V]]

Ungrouped