Skip to content

Commit cfc1047

Browse files
authored
Update README.md
1 parent 4dab9a2 commit cfc1047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ df add: #('Barcelona' 1.609 true).
5252
This way is the best for creating simple examples for testing since you can see how the data will be arranged in your data frame.
5353

5454
```smalltalk
55-
df := DataFrame rows: #(
55+
df := DataFrame fromRows: #(
5656
('Barcelona' 1.609 true)
5757
('Dubai' 2.789 true)
5858
('London' 8.788 false)).
@@ -62,7 +62,7 @@ df := DataFrame rows: #(
6262
We can do the same by passing an array of columns
6363

6464
```smalltalk
65-
df := DataFrame rows: #(
65+
df := DataFrame fromColumns: #(
6666
('Barcelona' 'Dubai' 'London')
6767
(1.609 2.789 8.788)
6868
(true true false)).
@@ -72,7 +72,7 @@ df := DataFrame rows: #(
7272
This is the most common way of creating a data frame. You have some dataset in a file (CSV, Excel etc.) - just ask a `DataFrame` to read it. At this point only CSV files are supported, but very soon you will also be able to read the data from other formats.
7373

7474
```smalltalk
75-
df := DataFrame fromCsv: 'path/to/your/file.csv'.
75+
df := DataFrame fromCSV: 'path/to/your/file.csv'.
7676
```
7777

7878
### Loading the built-in datasets

0 commit comments

Comments
 (0)