Skip to content

Commit

Permalink
Merge pull request #86 from HDI-Project/fix-pandas-py2-compat
Browse files Browse the repository at this point in the history
Fix pandas.Series.items does not exist in py2
  • Loading branch information
bcyphers committed Mar 2, 2018
2 parents 959bdc2 + aa9196d commit 8d23a3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atm/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def from_csv(self, path):

for _, r in df.iterrows():
# replace NaN and NaT with None
for k, v in list(r.items()):
for k, v in list(r.iteritems()):
if pd.isnull(v):
r[k] = None

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sqlalchemy==1.1.14
numpy==1.13.1
boto==2.48.0
pandas==0.20.3
pandas==0.22.0
scikit-learn==0.18.2
scipy==0.19.1
sklearn-pandas==1.5.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
'sqlalchemy>=1.1',
'numpy>=1.13',
'boto>=2.48',
'pandas>=0.20',
'pandas>=0.22',
'scikit-learn>=0.18',
'scipy>=0.19',
'sklearn-pandas>=1.5',
Expand Down

0 comments on commit 8d23a3b

Please sign in to comment.