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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cec5d04429e07f8534ddf83dc6f9c936ae0b4506028832a7fee98f85152279e
4
- data.tar.gz: bc753819f9c50e38c5ea354388046586ef85e6b2d11c99613219cdc5eb7b48b9
3
+ metadata.gz: 8543416156440087fbaf48acad949e5a15426d06fa871d4493705dabff8ba722
4
+ data.tar.gz: '0304593f38ec6d5e3fd65abe8ded93b4d2d9354571cb4e93650aa292b9390e06'
5
5
  SHA512:
6
- metadata.gz: 18ebe0cca22e7ce90b3bd604be6c4e325e05cd957f631573d7cc58eaa31353e75a2d6d1b86a176aac9e458c5457a86f188df8d84fbb7a5f75a25699d27982418
7
- data.tar.gz: 822e9a25ba3b591dc9d74b6875baec180a4e1d89e893f0fe612bc5e2f2c0290c0b64ab1564fe80fc2eb0ee59adbaa396e79429bc3a93037f6e8fe66027838cf7
6
+ metadata.gz: 3afba55b10fe1f4e17aa98fd1fa759be3c76673b17abab11ea98f56fb4963434c889f8ee2ee5ec8d986ab975869053da932ea8de870017c3b6e0043f9552c88c
7
+ data.tar.gz: a11d1d1ea1f5d5d1d5e5b0fb78dfadc0bede08b335e3e4256a25250668ce8bb2b6c5149a68de5c9e25375401fe9f7aa47226dc6b16c0c9a0bf9e927d6c0eab5b
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # The chenge history of Pandas wrapper for Ruby
2
2
 
3
+ ## 0.3.2
4
+
5
+ * Fix for pandas 1.0
6
+
3
7
  ## 0.3.1
4
8
 
5
9
  * Fix `Pandas.read_sql_table` for passing optional parameters such as `index_col`
@@ -1,7 +1,7 @@
1
1
  require "pandas/version"
2
2
  require "pycall"
3
3
 
4
- Pandas = PyCall.import_module('pandas')
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
- IXIndexer = self.core.indexing._IXIndexer
22
- IXIndexer.__send__ :register_python_type_mapping
21
+ if self.__version__ < "1.0"
22
+ IXIndexer = self.core.indexing._IXIndexer
23
+ IXIndexer.__send__ :register_python_type_mapping
24
+ end
23
25
 
24
- MultiIndex = self.core.indexing.MultiIndex
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__ >= '0.20'
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
- Index = self.core.index.Index
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
@@ -1 +1 @@
1
- PANDAS_VERSION = "0.3.1"
1
+ PANDAS_VERSION = "0.3.2"
@@ -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", "~> 1.15"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "rspec", "~> 3.0"
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
@@ -1,2 +1,2 @@
1
- pandas==0.22.*
2
- sqlalchemy==1.2.*
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.1
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: 2018-04-04 00:00:00.000000000 Z
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: '1.15'
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: '1.15'
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: '10.0'
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: '10.0'
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: '3.0'
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: '3.0'
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
- rubyforge_project:
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