pandas 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/pandas.rb +16 -6
- data/lib/pandas/version.rb +1 -1
- data/pandas.gemspec +3 -3
- data/requirements.txt +2 -2
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8543416156440087fbaf48acad949e5a15426d06fa871d4493705dabff8ba722
|
4
|
+
data.tar.gz: '0304593f38ec6d5e3fd65abe8ded93b4d2d9354571cb4e93650aa292b9390e06'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afba55b10fe1f4e17aa98fd1fa759be3c76673b17abab11ea98f56fb4963434c889f8ee2ee5ec8d986ab975869053da932ea8de870017c3b6e0043f9552c88c
|
7
|
+
data.tar.gz: a11d1d1ea1f5d5d1d5e5b0fb78dfadc0bede08b335e3e4256a25250668ce8bb2b6c5149a68de5c9e25375401fe9f7aa47226dc6b16c0c9a0bf9e927d6c0eab5b
|
data/CHANGES.md
CHANGED
data/lib/pandas.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "pandas/version"
|
2
2
|
require "pycall"
|
3
3
|
|
4
|
-
Pandas = PyCall.import_module(
|
4
|
+
Pandas = PyCall.import_module("pandas")
|
5
5
|
module Pandas
|
6
6
|
VERSION = PANDAS_VERSION
|
7
7
|
Object.send :remove_const, :PANDAS_VERSION
|
@@ -18,20 +18,30 @@ module Pandas
|
|
18
18
|
LocIndexer = self.core.indexing._LocIndexer
|
19
19
|
LocIndexer.__send__ :register_python_type_mapping
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
if self.__version__ < "1.0"
|
22
|
+
IXIndexer = self.core.indexing._IXIndexer
|
23
|
+
IXIndexer.__send__ :register_python_type_mapping
|
24
|
+
end
|
23
25
|
|
24
|
-
|
26
|
+
if self.__version__ >= "1.0"
|
27
|
+
MultiIndex = self.core.indexes.multi.MultiIndex
|
28
|
+
else
|
29
|
+
MultiIndex = self.core.indexing.MultiIndex
|
30
|
+
end
|
25
31
|
MultiIndex.__send__ :register_python_type_mapping
|
26
32
|
|
27
|
-
DatetimeIndex = if self.__version__ >=
|
33
|
+
DatetimeIndex = if self.__version__ >= "0.20"
|
28
34
|
self.core.indexes.datetimes.DatetimeIndex
|
29
35
|
else
|
30
36
|
self.tseries.index.DatetimeIndex
|
31
37
|
end
|
32
38
|
DatetimeIndex.__send__ :register_python_type_mapping
|
33
39
|
|
34
|
-
|
40
|
+
if self.__version__ >= "1.0"
|
41
|
+
Index = self.core.indexes.base.Index
|
42
|
+
else
|
43
|
+
Index = self.core.index.Index
|
44
|
+
end
|
35
45
|
Index.__send__ :register_python_type_mapping
|
36
46
|
|
37
47
|
DataFrameGroupBy = self.core.groupby.DataFrameGroupBy
|
data/lib/pandas/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
PANDAS_VERSION = "0.3.
|
1
|
+
PANDAS_VERSION = "0.3.2"
|
data/pandas.gemspec
CHANGED
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "pycall", ">= 1.0.0"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "
|
27
|
-
spec.add_development_dependency "rake"
|
28
|
-
spec.add_development_dependency "rspec"
|
26
|
+
spec.add_development_dependency "bundler", ">= 1.17.2"
|
27
|
+
spec.add_development_dependency "rake"
|
28
|
+
spec.add_development_dependency "rspec"
|
29
29
|
spec.add_development_dependency "activerecord", ">= 4.2"
|
30
30
|
spec.add_development_dependency "sqlite3"
|
31
31
|
end
|
data/requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
pandas
|
2
|
-
sqlalchemy
|
1
|
+
pandas
|
2
|
+
sqlalchemy
|
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.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenta Murata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pycall
|
@@ -28,44 +28,44 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.17.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.17.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.6
|
142
|
+
rubygems_version: 3.1.2
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: Pandas wrapper for Ruby
|