pandas 0.3.3 → 0.3.4

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
  SHA256:
3
- metadata.gz: 952bd0798aaf70a04aad070946185ba24462c5ba88d68650d65c096bcb3a8e81
4
- data.tar.gz: fb70cd2d1f07485ea94fbab52ed054be9d14cbe35948a297d5f011b60f9353cb
3
+ metadata.gz: c913e79f27264bf7fc6372dab00e706736e14fd9bfdc5b7a9115aa229a26ccc7
4
+ data.tar.gz: b71d64bc03c8a2f2402ee0d33aca7a8646229806799472a9bb2ad955e4875696
5
5
  SHA512:
6
- metadata.gz: d21e7f9c032f5efae82689ac111167bdc3f9db844748aa2b148261750d39f54a17f3ce5c1578121238ef0dc5af7d04564672a18525f3394157dea4ba0f60b73a
7
- data.tar.gz: 15bfd63048f2cbbc2f602ad08626a2d2fe838cf026eeaaa583a27223e9255291bea113ae97d23286fbcd89c249b1effb65235b3b18b5620f99446f9eb723e97c
6
+ metadata.gz: 6eed3dc70cb8744495021c874c2ce22a0ffc54b51a93166b0e9bf405919dc9b9f8c0399bae1100d59808e6c299d5951e158151d5364a5dabfaf41f8160a6cad5
7
+ data.tar.gz: 9164bbe1b1419aadfd1e8695129aaebaf70dcbf297baf0e54a68ec0d93a458d48a59187dfac58853410558f88f85e1686f752d650bd980c5dd887ecb81f3ee9e
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # The chenge history of Pandas wrapper for Ruby
2
2
 
3
+ ## 0.3.4
4
+
5
+ * Add `to_a` methods in `Pandas::Series` and `Pandas::Index`
6
+
7
+ * Add `length` method in `Pandas::Series` and `Pandas::Index`
8
+
3
9
  ## 0.3.3
4
10
 
5
11
  * Support array index in `Pandas::Series#[]`
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pandas wrapper for Ruby
2
2
 
3
- [![Build Status](https://travis-ci.org/mrkn/pandas.rb.svg)](https://travis-ci.org/mrkn/pandas.rb)
3
+ [![CI](https://github.com/mrkn/pandas.rb/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/mrkn/pandas.rb/actions?query=workflow%3ACI)
4
4
 
5
5
  This library enables to directry call [pandas](http://pandas.pydata.org/) from Ruby language.
6
6
  This uses [pycall](https://github.com/mrkn/pycall).
data/lib/pandas/index.rb CHANGED
@@ -17,5 +17,13 @@ module Pandas
17
17
  def unique?
18
18
  is_unique
19
19
  end
20
+
21
+ def length
22
+ size
23
+ end
24
+
25
+ def to_a
26
+ Array.new(length) {|i| self[i] }
27
+ end
20
28
  end
21
29
  end
data/lib/pandas/series.rb CHANGED
@@ -32,5 +32,13 @@ module Pandas
32
32
  def unique?
33
33
  is_unique
34
34
  end
35
+
36
+ def length
37
+ size
38
+ end
39
+
40
+ def to_a
41
+ Array.new(length) {|i| self[i] }
42
+ end
35
43
  end
36
44
  end
@@ -1 +1 @@
1
- PANDAS_VERSION = "0.3.3"
1
+ PANDAS_VERSION = "0.3.4"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pycall
@@ -141,7 +141,7 @@ homepage: https://github.com/mrkn/pandas.rb
141
141
  licenses:
142
142
  - MIT
143
143
  metadata: {}
144
- post_install_message:
144
+ post_install_message:
145
145
  rdoc_options: []
146
146
  require_paths:
147
147
  - lib
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubygems_version: 3.2.3
160
- signing_key:
160
+ signing_key:
161
161
  specification_version: 4
162
162
  summary: Pandas wrapper for Ruby
163
163
  test_files: []