daru 0.0.2 → 0.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile.lock +1 -1
- data/History.txt +0 -0
- data/README.md +10 -1
- data/lib/daru/dataframe.rb +10 -2
- data/lib/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1106a4a4200cc9b58f8979f7e5c84549f88acf7
|
4
|
+
data.tar.gz: c57bc9be84f3821f2327a78d20619818da750b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de39382a8aa349a97fdac79b9df6540a752095194adbae9a72a901401276d3ac9a200f658ce1c5af08936cefad2647494632e306710a7e1db7ed0f4827699b38
|
7
|
+
data.tar.gz: 8a8a1abb43f9f1d7b6fa0b524572f6a32a01e71462c12e7247189c207872db2b5b1af0f75693410af74cc314148de673ae4b32d8870518829358766d45b86668
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
data/History.txt
ADDED
File without changes
|
data/README.md
CHANGED
@@ -3,6 +3,8 @@ daru
|
|
3
3
|
|
4
4
|
Data Analysis in RUby
|
5
5
|
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/daru.svg)](http://badge.fury.io/rb/daru)
|
7
|
+
|
6
8
|
## Introduction
|
7
9
|
|
8
10
|
daru (Data Analysis in RUby) is a library for storage, analysis and manipulation of data. It aims to be the preferred data analysis library for Ruby.
|
@@ -29,8 +31,15 @@ Then switch to MRI, do a normal `bundle install` followed by `rspec` for testing
|
|
29
31
|
|
30
32
|
## Roadmap
|
31
33
|
|
34
|
+
* Integration with IRuby
|
32
35
|
* Automate testing for both MRI and JRuby.
|
33
36
|
* Enable creation of DataFrame by only specifying an NMatrix/MDArray in initialize. Vector naming happens automatically (alphabetic) or is specified in an Array.
|
34
37
|
* Add support for missing values in vectors.
|
35
38
|
* Add normal and destructive map iterators.
|
36
|
-
* Completely test all functionality for NMatrix and MDArray.
|
39
|
+
* Completely test all functionality for NMatrix and MDArray.
|
40
|
+
* Basic Data manipulation and analysis operations:
|
41
|
+
- Different kinds of join operations
|
42
|
+
- Dataframe/vector merge
|
43
|
+
- Creation of correlation, covariance matrices
|
44
|
+
- Verification of data in a vector
|
45
|
+
- Basic vector statistics - mean, median, variance, etc.
|
data/lib/daru/dataframe.rb
CHANGED
@@ -58,6 +58,14 @@ module Daru
|
|
58
58
|
@fields.delete name
|
59
59
|
end
|
60
60
|
|
61
|
+
# def filter_rows
|
62
|
+
|
63
|
+
# end
|
64
|
+
|
65
|
+
# def filter_columns
|
66
|
+
|
67
|
+
# end
|
68
|
+
|
61
69
|
def [](name)
|
62
70
|
column name
|
63
71
|
end
|
@@ -124,7 +132,7 @@ module Daru
|
|
124
132
|
html += '<tr>'
|
125
133
|
row.each{ |val| html.concat('<td>' + val.to_s + '</td>') }
|
126
134
|
html += '</tr>'
|
127
|
-
if
|
135
|
+
if index == threshold
|
128
136
|
html += '<tr>'
|
129
137
|
row.size.times { html.concat('<td>...</td>') }
|
130
138
|
html += '</tr>'
|
@@ -137,7 +145,7 @@ module Daru
|
|
137
145
|
def to_s
|
138
146
|
to_html
|
139
147
|
end
|
140
|
-
|
148
|
+
|
141
149
|
def method_missing(name, *args)
|
142
150
|
if md = name.match(/(.+)\=/)
|
143
151
|
insert_vector name[/(.+)\=/].delete("="), args[0]
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2
|
4
|
+
version: 0.0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Deshmukh
|
@@ -62,8 +62,10 @@ extensions: []
|
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
64
|
- ".rspec"
|
65
|
+
- ".travis.yml"
|
65
66
|
- Gemfile
|
66
67
|
- Gemfile.lock
|
68
|
+
- History.txt
|
67
69
|
- LICENSE
|
68
70
|
- README.md
|
69
71
|
- daru.gemspec
|