Bug#841610: statsmodels: FTBFS: TypeError: cannot sort an Index object in-place, use sort_values instead

2016-11-19 Thread Yaroslav Halchenko
On November 19, 2016 11:54:49 AM EST, Ole Streicher  wrote:
>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.

Cool. Thanks. I will apply it to the package when get back from a trip to the 
kids museum
-- 
Sent from a phone which beats iPhone.

Bug#841610: statsmodels: FTBFS: TypeError: cannot sort an Index object in-place, use sort_values instead

2016-11-19 Thread Ole Streicher
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 
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]


Bug#841610: statsmodels: FTBFS: TypeError: cannot sort an Index object in-place, use sort_values instead

2016-11-03 Thread Sandro Tosi
* the Anova errors seem related to
https://github.com/statsmodels/statsmodels/issues/3228

* "ValueError: Inferred frequency MS from passed dates does not
conform to passed frequency M" could be related to the absence of
tzdata (but the last function of the stacktrace is in pandas so the
bug may be there)

* "TypeError: cannot sort an Index object in-place, use sort_values
instead" may or may not be a problem in pandas (since there was a
recent update of pandas you might want to retry and see if that fixed
them, if not maybe you can ask statsmodels upstream what they think

thanks!

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi