Skip to content

Commit 80ff875

Browse files
committed
Implemented groupBy for DataSeries
1 parent 02f47db commit 80ff875

File tree

21 files changed

+143
-10
lines changed

21 files changed

+143
-10
lines changed

DataFrame-Core.package/DataFrame.class/class/fromCsv.separatedBy..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fromCsv: pathToFile separatedBy: separator
99
reject: [:e | e isEmpty]) " lose empty lines "
1010
collect: [:e | e findTokens: separator]. " split into fields "
1111

12-
df := self rows: (data copyFrom: 2 to: data size).
12+
df := self fromRows: (data copyFrom: 2 to: data size).
1313
df columnNames: (data at: 1) asArray.
1414

1515
"Deduce types"

DataFrame-Core.package/DataFrameGrouped.class/README.md

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
apply: aBlock
3+
4+
"TODO"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commentStamp" : "",
3+
"super" : "DataGrouped",
4+
"category" : "DataFrame-Core",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [ ],
9+
"name" : "DataFrameGrouped",
10+
"type" : "normal"
11+
}

DataFrame-Core.package/DataGrouped.class/README.md

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
apply: aBlock
3+
4+
self subclassResponsibility
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
average
3+
4+
^ self apply: [ :eachGroup | eachGroup average ]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
count
3+
4+
^ self apply: [ :eachGroup | eachGroup size ]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
max
3+
4+
^ self apply: [ :eachGroup | eachGroup max ]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private
2+
min
3+
4+
^ self apply: [ :eachGroup | eachGroup min ]

0 commit comments

Comments
 (0)