Skip to content

Commit d597153

Browse files
committed
Closed #75. Renamed DataFrame>>withKeyDo: to withRowNameDo:
1 parent dc83eca commit d597153

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/DataFrame-Tests/DataFrameTest.class.st

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ DataFrameTest >> testVarSizeInstanceCreation [
15841584
]
15851585

15861586
{ #category : #tests }
1587-
DataFrameTest >> testWithKeyDo [
1587+
DataFrameTest >> testWithRowNameDo [
15881588

15891589
| actual expected |
15901590

@@ -1599,14 +1599,14 @@ DataFrameTest >> testWithKeyDo [
15991599

16001600
actual := Dictionary new.
16011601

1602-
df withKeyDo: [ :each :key |
1602+
df withRowNameDo: [ :each :key |
16031603
actual at: key put: each ].
16041604

16051605
self assert: actual equals: expected.
16061606
]
16071607

16081608
{ #category : #tests }
1609-
DataFrameTest >> testWithKeyDoCanModifyRows [
1609+
DataFrameTest >> testWithRowNameDoCanModifyRows [
16101610
| expected |
16111611

16121612
expected := DataFrame
@@ -1617,7 +1617,7 @@ DataFrameTest >> testWithKeyDoCanModifyRows [
16171617
rowNames: df rowNames
16181618
columnNames: df columnNames.
16191619

1620-
df withKeyDo: [ :row :key |
1620+
df withRowNameDo: [ :row :key |
16211621
row name = 'A'
16221622
ifFalse: [ row at: #City put: (row at: #City) asUppercase ] ].
16231623

src/DataFrame/DataFrame.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ DataFrame >> variance [
11761176
]
11771177

11781178
{ #category : #enumerating }
1179-
DataFrame >> withKeyDo: elementAndKeyBlock [
1179+
DataFrame >> withRowNameDo: elementAndKeyBlock [
11801180

11811181
1 to: self size do: [ :i |
11821182
| row |

0 commit comments

Comments
 (0)