Skip to content

Commit d137bf6

Browse files
authored
Merge pull request #186 from Joshua-Dias-Barreto/master
Added examples on manipulating the DataFrame (issue #131)
2 parents 3907b9a + ef1022c commit d137bf6

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,34 @@ weather := DataFrame withRows: #(
5959
(3.2 true rain)).
6060
```
6161

62+
### Removing the third row of the data frame
63+
64+
```Smalltalk
65+
weather removeRowAt: 3.
66+
```
67+
<img width="700" src="img/weatherDfRemoveRow.png">
68+
69+
### Adding a row to the data frame
70+
71+
```Smalltalk
72+
weather addRow: #(-1.2 true snow) named:''.
73+
```
74+
<img width="700" src="img/weatherDfAddRow.png">
75+
76+
### Replacing the data in the first row and third column with 'snow'
77+
78+
```Smalltalk
79+
weather at:1 at:3 put:#snow.
80+
```
81+
<img width="700" src="img/weatherDfReplaceData.png">
82+
83+
### Transpose of the data frame
84+
85+
```Smalltalk
86+
weather transposed.
87+
```
88+
<img width="700" src="img/weatherDfTranspose.png">
89+
6290
## DataFrame Booklet
6391

6492
For more information, please read [Data Analysis Made Simple with Pharo DataFrame](https://github.com/SquareBracketAssociates/Booklet-DataFrame) - a booklet that serves as the main source of documentation for the DataFrame project. It describes the complete API of DataFrame and DataSeries data structures, and provides examples for each method.

img/weatherDfAddRow.png

33.7 KB
Loading

img/weatherDfRemoveRow.png

29.5 KB
Loading

img/weatherDfReplaceData.png

35.5 KB
Loading

img/weatherDfTranspose.png

28.1 KB
Loading

0 commit comments

Comments
 (0)