worldbank_as_dataframe 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +22 -26
- data/lib/worldbank_as_dataframe/data.rb +1 -1
- data/lib/worldbank_as_dataframe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7917f039c5a6c52b469e4bf34bdc17ba4c697751404f30f5952138f3a5ef1863
|
4
|
+
data.tar.gz: 9d2c7c691663839f2a70f6ea3648dda321b03b5d840407b1b3edc58efb6a62c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 655b99a5a3584aa31f83b1f8ade2a65b23d44c0defbb86904fd59d56e566e547ebc99a4070c632488de64eac4422f9b4e66a503461796090a9cff52a2e256bdc
|
7
|
+
data.tar.gz: ed8a438946c6c9c0a1a7b66bc8f82f8b73a04b3d678333ce5826ba33b727ed96c55fdb25b0190bd2bca806da68d726f6b60c909b227fc4aa6cfd5c592705369e
|
data/README.md
CHANGED
@@ -1,20 +1,11 @@
|
|
1
1
|
# WorldbankAsDataframe
|
2
2
|
|
3
|
-
A wrapper for the World Bank's Development Indicators API sponsored by Code for America.
|
3
|
+
A wrapper for the World Bank's Development Indicators API. This API was initially developed and sponsored by Code for America, and later updated by Alexander Auritt.
|
4
4
|
|
5
5
|
Please see the World Bank's data [[developer's page](http://data.worldbank.org/developers/)] for more info on the data sources.
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
Continuous Integration
|
10
|
-
----------------------
|
11
|
-
|
12
|
-
You can see the World Bank Gem's build status at
|
13
|
-
http:ci.codeforamerica.org or on Travis:
|
14
|
-
|
15
|
-
[](http://travis-ci.org/codeforamerica/worldbank_as_dataframe_ruby)
|
16
|
-
|
17
|
-
|
18
9
|
Usage
|
19
10
|
-----
|
20
11
|
```ruby
|
@@ -83,17 +74,23 @@ include WorldbankAsDataframe
|
|
83
74
|
|
84
75
|
puts @results.first.name
|
85
76
|
@results.each {|d| puts d.date + ': $' + d.value }
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
77
|
+
# =>
|
78
|
+
# shape: (9, 2)
|
79
|
+
# ┌────────────┬──────────────────────────────┐
|
80
|
+
# │ Timestamps ┆ GDP (current US$) for Brazil │
|
81
|
+
# │ --- ┆ --- │
|
82
|
+
# │ date ┆ f64 │
|
83
|
+
# ╞════════════╪══════════════════════════════╡
|
84
|
+
# │ 2008-12-31 ┆ 1.6959e12 │
|
85
|
+
# │ 2007-12-31 ┆ 1.3971e12 │
|
86
|
+
# │ 2006-12-31 ┆ 1.1076e12 │
|
87
|
+
# │ 2005-12-31 ┆ 8.9163e11 │
|
88
|
+
# │ 2004-12-31 ┆ 6.6929e11 │
|
89
|
+
# │ 2003-12-31 ┆ 5.5823e11 │
|
90
|
+
# │ 2002-12-31 ┆ 5.0980e11 │
|
91
|
+
# │ 2001-12-31 ┆ 5.5998e11 │
|
92
|
+
# │ 2000-12-31 ┆ 6.5545e11 │
|
93
|
+
# └────────────┴──────────────────────────────┘
|
97
94
|
#
|
98
95
|
# The WorldbankAsDataframe::Data can have have methods matching any of the World Bank API's
|
99
96
|
# modifiers (like #dates above) called as class methods or chained in a query.
|
@@ -118,13 +115,13 @@ Here are some ways *you* can contribute:
|
|
118
115
|
* by writing code (**no patch is too small**: fix typos, add comments,
|
119
116
|
clean up inconsistent whitespace)
|
120
117
|
* by refactoring code
|
121
|
-
* by resolving [issues](https://github.com/
|
118
|
+
* by resolving [issues](https://github.com/bmck/worldbank_as_dataframe/issues)
|
122
119
|
* by reviewing patches
|
123
120
|
|
124
121
|
Submitting an Issue
|
125
122
|
-------------------
|
126
123
|
We use the [GitHub issue
|
127
|
-
tracker](https://github.com/
|
124
|
+
tracker](https://github.com/bmck/worldbank_as_dataframe/issues) to track bugs and
|
128
125
|
features. Before submitting a bug report or feature request, check to
|
129
126
|
make sure it hasn't already
|
130
127
|
been submitted. You can indicate support for an existing issuse by
|
@@ -156,9 +153,8 @@ Copyright
|
|
156
153
|
---------
|
157
154
|
Copyright (c) 2011 Code for America
|
158
155
|
See
|
159
|
-
[LICENSE](https://github.com/
|
156
|
+
[LICENSE](https://github.com/bmck/worldbank_as_dataframe/blob/master/LICENSE.md)
|
160
157
|
for details.
|
161
158
|
|
162
|
-
|
163
|
-
Tracker](http://stats.codeforamerica.org/codeforamerica/code_for_america_tracking.png)](http://stats.codeforamerica.org/)
|
159
|
+
|
164
160
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: worldbank_as_dataframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill McKinnon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ZenTest
|