Control: tags -1 patch

Upstream there is already a simple patch available for the TypeError:

https://github.com/statsmodels/statsmodels/pull/3239

For convenience, it is attached.

The IOErrors are gone with the newest Pandas version.

However, the ValueError do not disappear when adding tzdata to the
build-depends.
>From 22cc39f77059297a3ec22d68f1684efd65c433a5 Mon Sep 17 00:00:00 2001
From: thequackdaddy <pqu...@gmail.com>
Date: Wed, 16 Nov 2016 14:25:19 -0600
Subject: [PATCH] Simplified commit

---
 statsmodels/tools/grouputils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/statsmodels/tools/grouputils.py b/statsmodels/tools/grouputils.py
index 8e91bba..481ee99 100644
--- a/statsmodels/tools/grouputils.py
+++ b/statsmodels/tools/grouputils.py
@@ -403,6 +403,7 @@ def get_slices(self, level=0):
         """
         # TODO: refactor this
         groups = self.index.get_level_values(level).unique()
+        groups = np.array(groups)
         groups.sort()
         if isinstance(self.index, MultiIndex):
             self.slices = [self.index.get_loc_level(x, level=level)[0]

Reply via email to