Skip to content

Commit 5928b47

Browse files
Merge pull request #102 from davidastephens/test_017rc2
TST: Update tests to pandas 0.17.0rc2
2 parents ce0318b + 8790b26 commit 5928b47

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ env:
77
- PYTHON=2.7 PANDAS=0.15.1
88
- PYTHON=3.3 PANDAS=0.14.1
99
- PYTHON=3.4 PANDAS=0.16.2
10-
- PYTHON=3.4 PANDAS=v0.17.0rc1
10+
- PYTHON=3.4 PANDAS=v0.17.0rc2
11+
- PYTHON=3.5 PANDAS=v0.17.0rc2
1112
- PYTHON=2.7 PANDAS=0.12.0
1213
- PYTHON=2.7 PANDAS=0.11.0
1314
- PYTHON=2.7 PANDAS=0.10.1
@@ -37,8 +38,9 @@ install:
3738
# Useful for debugging any issues with conda
3839
- conda info -a
3940

40-
- conda create -q -n test-environment python=$PYTHON pandas=$PANDAS nose coverage setuptools html5lib lxml beautiful-soup
41+
- conda create -q -n test-environment python=$PYTHON pandas=$PANDAS nose coverage setuptools html5lib lxml
4142
- source activate test-environment
43+
- pip install beautifulsoup4
4244
- pip install coveralls --quiet
4345
- conda list
4446
- python setup.py install

pandas_datareader/wb.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import print_function
44

5-
from distutils.version import LooseVersion
65
import warnings
76

87
from pandas.compat import reduce, lrange
@@ -11,7 +10,6 @@
1110
import pandas
1211
import numpy as np
1312

14-
PD017 = LooseVersion(pandas.__version__) > LooseVersion('0.16.2')
1513
# This list of country codes was pulled from wikipedia during October 2014.
1614
# While some exceptions do exist, it is the best proxy for countries supported
1715
# by World Bank. It is an aggregation of the 2-digit ISO 3166-1 alpha-2, and
@@ -158,12 +156,7 @@ def download(country=['MX', 'CA', 'US'], indicator=['NY.GDP.MKTP.CD', 'NY.GNS.IC
158156
out = reduce(lambda x, y: x.merge(y, how='outer'), data)
159157
out = out.drop('iso_code', axis=1)
160158
out = out.set_index(['country', 'year'])
161-
if PD017:
162-
kwargs = dict((kw, True)
163-
for kw in ('datetime', 'numeric', 'timedelta'))
164-
else:
165-
kwargs = {'convert_numeric': True}
166-
out = out.convert_objects(**kwargs)
159+
out = out.convert_objects(convert_numeric=True)
167160
return out
168161
else:
169162
msg = "No indicators returned data."

0 commit comments

Comments
 (0)