summaryrefslogtreecommitdiff
blob: 540135c9e1255b9918545fb3ba868d013f34a0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 setup.py                     | 2 +-
 statsmodels/tools/testing.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 1a7da9a..a6d1b33 100644
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,7 @@ def check_dependency_versions(min_versions):
                               (spversion, min_versions['scipy']))
 
     try:
-        from pandas.version import short_version as pversion
+        from pandas import __version__ as pversion
     except ImportError:
         install_requires.append('pandas')
     else:
diff --git a/statsmodels/tools/testing.py b/statsmodels/tools/testing.py
index 1fde1de..92e77fc 100644
--- a/statsmodels/tools/testing.py
+++ b/statsmodels/tools/testing.py
@@ -17,7 +17,7 @@ def strip_rc(version):
 def is_pandas_min_version(min_version):
     '''check whether pandas is at least min_version
     '''
-    from pandas.version import short_version as pversion
+    from pandas import __version__ as pversion
     return StrictVersion(strip_rc(pversion)) >= min_version