Skip to content

3. Creating DataSeries

Oleksandr Zaytsev edited this page Jan 10, 2018 · 1 revision

DataSeries can be created from an array of values

series := DataSeries fromArray: #(a b c).

By extending the Collection class DataFrame library provides us with a handy shortcut for converting any collection (e.g. an Array) to DataSeries

series := #(a b c) asDataSeries.

By default the keys will be initialized with an interval (1 to: self size). The name of a newly created series is considered empty and set by default to nil. You can always change the name and keys of your series using these messages

series name: 'letters'.
series keys: #(k1 k2 k3).

Tutorial

  1. Installation
  2. Creating DataSeries
Clone this wiki locally