You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -115,14 +115,35 @@ public function __toString(): string
115
115
// ------- Main class methods
116
116
117
117
/**
118
-
* Construct a new dataframe with the provided data. You may optionally provided the
118
+
* Construct a new dataframe with the provided data. You may optionally provide the
119
119
* set of column headers in the second parameter. If you choose to do this then they
120
120
* should match the keys in the array.
121
121
*
122
-
* NOTE: The provided array must have at least one element/row and must also be
123
-
* 2-dimensional in structure.
122
+
* -- parameters:
123
+
* @param $data The array of data. Unless `$isVerticalDataSet` is TRUE, the array should be an array of rows. Each row is an associative array where the keys correpsond to the headers of each column.
124
+
* @param $headers An optional custom set of column headers.
125
+
* @param $isVerticalDataSet When set to TRUE the $data array is interpretted as a veritical series of columns instead of rows. Defaults to FALSE.
0 commit comments