daru 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +0 -0
  3. data/Gemfile +0 -1
  4. data/History.txt +35 -0
  5. data/README.md +178 -198
  6. data/daru.gemspec +5 -7
  7. data/lib/daru.rb +10 -2
  8. data/lib/daru/accessors/array_wrapper.rb +36 -198
  9. data/lib/daru/accessors/nmatrix_wrapper.rb +60 -209
  10. data/lib/daru/core/group_by.rb +183 -0
  11. data/lib/daru/dataframe.rb +615 -167
  12. data/lib/daru/index.rb +17 -16
  13. data/lib/daru/io/io.rb +5 -12
  14. data/lib/daru/maths/arithmetic/dataframe.rb +72 -8
  15. data/lib/daru/maths/arithmetic/vector.rb +19 -6
  16. data/lib/daru/maths/statistics/dataframe.rb +103 -2
  17. data/lib/daru/maths/statistics/vector.rb +102 -61
  18. data/lib/daru/monkeys.rb +8 -0
  19. data/lib/daru/multi_index.rb +199 -0
  20. data/lib/daru/plotting/dataframe.rb +24 -24
  21. data/lib/daru/plotting/vector.rb +14 -15
  22. data/lib/daru/vector.rb +402 -98
  23. data/lib/version.rb +1 -1
  24. data/notebooks/grouping_splitting_pivots.ipynb +529 -0
  25. data/notebooks/intro_with_music_data_.ipynb +104 -119
  26. data/spec/accessors/wrappers_spec.rb +36 -0
  27. data/spec/core/group_by_spec.rb +331 -0
  28. data/spec/dataframe_spec.rb +1237 -475
  29. data/spec/fixtures/sales-funnel.csv +18 -0
  30. data/spec/index_spec.rb +10 -21
  31. data/spec/io/io_spec.rb +4 -14
  32. data/spec/math/arithmetic/dataframe_spec.rb +66 -0
  33. data/spec/math/arithmetic/vector_spec.rb +45 -4
  34. data/spec/math/statistics/dataframe_spec.rb +91 -1
  35. data/spec/math/statistics/vector_spec.rb +32 -6
  36. data/spec/monkeys_spec.rb +10 -1
  37. data/spec/multi_index_spec.rb +216 -0
  38. data/spec/spec_helper.rb +1 -0
  39. data/spec/vector_spec.rb +505 -57
  40. metadata +21 -15
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Deshmukh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-01 00:00:00.000000000 Z
11
+ date: 2015-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,23 +86,18 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.0.rc5
89
+ version: 0.1.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.0.rc5
97
- description: |
98
- Daru (Data Analysis in RUby) is a library for storage, analysis and manipulation
99
- of data.
100
-
101
- Daru works with Ruby arrays, NMatrix and MDArray, thus working seamlessly accross
102
- ruby interpreters, at the same time providing speed for those who need it.
103
-
104
- This library is under active development so NMatrix and MDArray support is
105
- somewhat limited, but should be available soon!
96
+ version: 0.1.0
97
+ description: "Daru (Data Analysis in RUby) is a library for analysis, manipulation
98
+ and visualization\nof data.\n\nDaru works with Ruby arrays and NMatrix, thus working
99
+ seamlessly accross\nruby interpreters, at the same time providing speed for those
100
+ who need it, while \nmaking working with data super simple and intuitive.\n"
106
101
  email:
107
102
  - sameer.deshmukh93@gmail.com
108
103
  executables: []
@@ -112,6 +107,7 @@ files:
112
107
  - ".gitignore"
113
108
  - ".rspec"
114
109
  - ".travis.yml"
110
+ - CONTRIBUTING.md
115
111
  - Gemfile
116
112
  - Gemfile.lock
117
113
  - History.txt
@@ -125,6 +121,7 @@ files:
125
121
  - lib/daru/accessors/dataframe_by_vector.rb
126
122
  - lib/daru/accessors/mdarray_wrapper.rb
127
123
  - lib/daru/accessors/nmatrix_wrapper.rb
124
+ - lib/daru/core/group_by.rb
128
125
  - lib/daru/dataframe.rb
129
126
  - lib/daru/index.rb
130
127
  - lib/daru/io/io.rb
@@ -133,15 +130,20 @@ files:
133
130
  - lib/daru/maths/statistics/dataframe.rb
134
131
  - lib/daru/maths/statistics/vector.rb
135
132
  - lib/daru/monkeys.rb
133
+ - lib/daru/multi_index.rb
136
134
  - lib/daru/plotting/dataframe.rb
137
135
  - lib/daru/plotting/vector.rb
138
136
  - lib/daru/vector.rb
139
137
  - lib/version.rb
138
+ - notebooks/grouping_splitting_pivots.ipynb
140
139
  - notebooks/intro_with_music_data_.ipynb
140
+ - spec/accessors/wrappers_spec.rb
141
+ - spec/core/group_by_spec.rb
141
142
  - spec/dataframe_spec.rb
142
143
  - spec/fixtures/countries.json
143
144
  - spec/fixtures/matrix_test.csv
144
145
  - spec/fixtures/music_data.tsv
146
+ - spec/fixtures/sales-funnel.csv
145
147
  - spec/index_spec.rb
146
148
  - spec/io/io_spec.rb
147
149
  - spec/math/arithmetic/dataframe_spec.rb
@@ -149,6 +151,7 @@ files:
149
151
  - spec/math/statistics/dataframe_spec.rb
150
152
  - spec/math/statistics/vector_spec.rb
151
153
  - spec/monkeys_spec.rb
154
+ - spec/multi_index_spec.rb
152
155
  - spec/spec_helper.rb
153
156
  - spec/vector_spec.rb
154
157
  homepage: http://github.com/v0dro/daru
@@ -171,15 +174,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
174
  version: '0'
172
175
  requirements: []
173
176
  rubyforge_project:
174
- rubygems_version: 2.4.1
177
+ rubygems_version: 2.2.0
175
178
  signing_key:
176
179
  specification_version: 4
177
180
  summary: Data Analysis in RUby
178
181
  test_files:
182
+ - spec/accessors/wrappers_spec.rb
183
+ - spec/core/group_by_spec.rb
179
184
  - spec/dataframe_spec.rb
180
185
  - spec/fixtures/countries.json
181
186
  - spec/fixtures/matrix_test.csv
182
187
  - spec/fixtures/music_data.tsv
188
+ - spec/fixtures/sales-funnel.csv
183
189
  - spec/index_spec.rb
184
190
  - spec/io/io_spec.rb
185
191
  - spec/math/arithmetic/dataframe_spec.rb
@@ -187,6 +193,6 @@ test_files:
187
193
  - spec/math/statistics/dataframe_spec.rb
188
194
  - spec/math/statistics/vector_spec.rb
189
195
  - spec/monkeys_spec.rb
196
+ - spec/multi_index_spec.rb
190
197
  - spec/spec_helper.rb
191
198
  - spec/vector_spec.rb
192
- has_rdoc: