From 4671c9385e3198c78bda489aff2db5537f16b2d9 Mon Sep 17 00:00:00 2001 From: "Michael V. DePalatis" Date: Mon, 25 Sep 2017 15:45:02 -0400 Subject: [PATCH] Address Series.items not existing on Python 2.7 See pandas-dev/pandas#17214 --- bptools/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bptools/util.py b/bptools/util.py index 4797930..8c21c41 100644 --- a/bptools/util.py +++ b/bptools/util.py @@ -11,6 +11,6 @@ def from_series(cls, s): """ kwargs = { attr: value - for attr, value in s.items() + for attr, value in s.iteritems() } return cls(**kwargs)