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
Copy file name to clipboardExpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,12 @@ Written in pure Ruby so should work with all ruby implementations.
29
29
30
30
## Notebooks
31
31
32
-
*[Analysis and plotting of a data set comprising of music listening habits of a last.fm user(iruby notebook)](http://nbviewer.ipython.org/github/v0dro/daru/blob/master/notebooks/intro_with_music_data_.ipynb)
32
+
*[Analysis and plotting of a data set comprising of music listening habits of a last.fm user](http://nbviewer.ipython.org/github/v0dro/daru/blob/master/notebooks/intro_with_music_data_.ipynb)
33
33
34
34
## Blog Posts
35
35
36
36
*[Data Analysis in RUby: Basic data manipulation and plotting](http://v0dro.github.io/blog/2014/11/25/data-analysis-in-ruby-basic-data-manipulation-and-plotting/)
37
+
*[Data Analysis in RUby: Splitting, sorting, aggregating data and data types]()
37
38
38
39
## Documentation
39
40
@@ -275,8 +276,6 @@ Keep/remove row according to a specified condition:
275
276
```
276
277
The same can be applied to vectors using `filter_vectors`.
277
278
278
-
To iterate over a DataFrame and perform operations on rows or vectors, use `#each_row` or `#each_vector`.
279
-
280
279
To change the values of a row/vector while iterating through the DataFrame, use `map_rows` or `map_vectors`:
281
280
282
281
```ruby
@@ -298,8 +297,6 @@ To change the values of a row/vector while iterating through the DataFrame, use
298
297
299
298
```
300
299
301
-
Rows/vectors can be deleted using `delete_row` or `delete_vector`.
302
-
303
300
#### Basic Maths Operations
304
301
305
302
Performing a binary arithmetic operation on two `Daru::Vector` objects will return a `Vector` object in which the operation will be performed on elements of the same index.
@@ -321,6 +318,10 @@ Performing a binary arithmetic operation on two `Daru::Vector` objects will retu
321
318
322
319
Arithmetic operators applied on a single Numeric will perform the operation with that number against the entire vector.
323
320
321
+
#### Splitting and aggregation of data
322
+
323
+
`Daru::DataFrame` provides the `#group_by` method to split or aggregate data. Its very similar to SQL GROUP BY. Check the [blog post]() for details.
324
+
324
325
#### Statistics Operations
325
326
326
327
Daru::Vector has a whole lot of statistics operations to maintain compatibility with Statsample::Vector. Check the docs for details.
@@ -354,7 +355,6 @@ Head over to the tutorials and notebooks listed above for more examples.
354
355
* Create a new vector in map_rows if any of the already present rows dont match the one assigned in the block.
355
356
* Sort by index.
356
357
* Statistics on DataFrame over rows and columns.
357
-
* Produce multiple summary statistics in one shot.
0 commit comments