Skip to content

Commit 6622ca0

Browse files
committed
DEPR: remove statsmodels as a dependency
remove pd.ols, pd.fama_macbeth from top-level namespace xref pandas-dev#11898
1 parent d38d142 commit 6622ca0

25 files changed

+3
-5159
lines changed

ci/requirements-2.7.pip

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
statsmodels
21
blosc
32
httplib2
43
google-api-python-client==1.2

ci/requirements-2.7_COMPAT.run

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pytz=2013b
44
scipy=0.11.0
55
xlwt=0.7.5
66
xlrd=0.9.2
7-
statsmodels=0.4.3
87
bottleneck=0.8.0
98
numexpr=2.2.2
109
pytables=3.0.0

ci/requirements-2.7_LOCALE.run

-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ html5lib=1.0b2
1313
lxml=3.2.1
1414
scipy=0.11.0
1515
beautiful-soup=4.2.1
16-
statsmodels=0.4.3
1716
bigquery=2.0.17

ci/requirements-2.7_SLOW.run

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ numpy=1.8.2
44
matplotlib=1.3.1
55
scipy
66
patsy
7-
statsmodels
87
xlwt
98
openpyxl
109
xlsxwriter

ci/requirements-3.4_SLOW.run

-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ sqlalchemy
1717
bottleneck
1818
pymysql
1919
psycopg2
20-
statsmodels
2120
jinja2=2.8

ci/requirements-3.5_DOC_BUILD.run

-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ xlsxwriter
1717
sqlalchemy
1818
numexpr
1919
bottleneck
20-
statsmodels
2120
pyqt=4.11.4

doc/source/whatsnew/v0.20.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Removal of prior version deprecations/changes
396396
- The ``pandas.io.ga`` module with a ``google-analytics`` interface is removed (:issue:`11308`).
397397
Similar functionality can be found in the `Google2Pandas <https://github.com/panalysis/Google2Pandas>`__ package.
398398
- ``pd.to_datetime`` and ``pd.to_timedelta`` have dropped the ``coerce`` parameter in favor of ``errors`` (:issue:`13602`)
399-
399+
- ``pandas.stats.fama_macbeth``, ``pandas.stats.ols``, ``pandas.stats.plm`` and ``pandas.stats.var``, as well as the top-level ``pandas.fama_macbeth`` and ``pandas.ols`` routines are removed. Similar functionailty can be found in the ``statsmodels`` package. (:issue:`11898`)
400400

401401

402402

pandas/api/tests/test_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class TestPDApi(Base, tm.TestCase):
4242
'json', 'lib', 'index', 'parser']
4343

4444
# these are already deprecated; awaiting removal
45-
deprecated_modules = ['ols', 'stats', 'datetools']
45+
deprecated_modules = ['stats', 'datetools']
4646

4747
# misc
4848
misc = ['IndexSlice', 'NaT']
@@ -109,7 +109,7 @@ class TestPDApi(Base, tm.TestCase):
109109
'expanding_max', 'expanding_mean', 'expanding_median',
110110
'expanding_min', 'expanding_quantile',
111111
'expanding_skew', 'expanding_std', 'expanding_sum',
112-
'expanding_var', 'fama_macbeth', 'rolling_apply',
112+
'expanding_var', 'rolling_apply',
113113
'rolling_corr', 'rolling_count', 'rolling_cov',
114114
'rolling_kurt', 'rolling_max', 'rolling_mean',
115115
'rolling_median', 'rolling_min', 'rolling_quantile',

pandas/stats/api.py

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Common namespace of statistical functions
33
"""
44

5-
# pylint: disable-msg=W0611,W0614,W0401
6-
75
# flake8: noqa
86

97
from pandas.stats.moments import *
10-
from pandas.stats.interface import ols
11-
from pandas.stats.fama_macbeth import fama_macbeth

pandas/stats/common.py

-45
This file was deleted.

pandas/stats/fama_macbeth.py

-241
This file was deleted.

0 commit comments

Comments
 (0)