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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e40b5dd9b236c4f7bbc3e96e0d97f73fe6d940b4
4
- data.tar.gz: 377d3ddb6826c72179e84eb2f9cf66cc120b1236
3
+ metadata.gz: e1106a4a4200cc9b58f8979f7e5c84549f88acf7
4
+ data.tar.gz: c57bc9be84f3821f2327a78d20619818da750b9e
5
5
  SHA512:
6
- metadata.gz: 8e42d5fb359945d2ccab1f19062c1cc2e5123e4a33af54d0aeeda6db966d4d53444f50a40e8af2fbdffdf42e3416dcddf3421815b5e787567e73032365a59f62
7
- data.tar.gz: 089564afd6be1eef4f01060b064273ea2ca5efb2dd60d2b63019d2f324bb560e814e1dde855838e54b28cf04b55be8fc02a821bf48adc7e8e65830005618e900
6
+ metadata.gz: de39382a8aa349a97fdac79b9df6540a752095194adbae9a72a901401276d3ac9a200f658ce1c5af08936cefad2647494632e306710a7e1db7ed0f4827699b38
7
+ data.tar.gz: 8a8a1abb43f9f1d7b6fa0b524572f6a32a01e71462c12e7247189c207872db2b5b1af0f75693410af74cc314148de673ae4b32d8870518829358766d45b86668
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- daru (0.0.1)
4
+ daru (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.
@@ -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 i == threshold
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
@@ -1,3 +1,3 @@
1
1
  module Daru
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.2.1"
3
3
  end
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