File tree Expand file tree Collapse file tree 28 files changed +47
-77
lines changed Expand file tree Collapse file tree 28 files changed +47
-77
lines changed Original file line number Diff line number Diff line change 1
1
"""American National Election Survey 1996"""
2
+ from numpy import log
3
+
4
+ from statsmodels .datasets import utils as du
2
5
3
6
__docformat__ = 'restructuredtext'
4
7
85
88
logpopul - log(popul + .1)
86
89
"""
87
90
88
- from os .path import dirname , abspath
89
-
90
- import pandas as pd
91
- from numpy import log
92
-
93
- from statsmodels .datasets import utils as du
94
-
95
91
96
92
def load_pandas ():
97
93
"""Load the anes96 data and returns a Dataset class.
Original file line number Diff line number Diff line change 1
1
"""Breast Cancer Data"""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
25
26
population - The population of the county
26
27
27
28
"""
28
- from statsmodels .datasets import utils as du
29
29
30
30
31
31
def load_pandas ():
Original file line number Diff line number Diff line change 1
1
"""Bill Greene's credit scoring data."""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
25
26
Variable name definitions - See Source for more information on the
26
27
variables.
27
28
"""
28
- from statsmodels . datasets import utils as du
29
+
29
30
30
31
def load_pandas ():
31
32
"""Load the credit card data and returns a Dataset class.
Original file line number Diff line number Diff line change 1
1
"""Smoking and lung cancer in eight cities in China."""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
25
26
smoking - yes or no, according to a person's smoking behavior
26
27
lung_cancer - yes or no, according to a person's lung cancer status
27
28
"""
28
- import os
29
-
30
- import pandas as pd
31
-
32
- from statsmodels .datasets import utils as du
33
29
34
30
35
31
def load_pandas ():
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env python
2
-
3
1
"""Mauna Loa Weekly Atmospheric CO2 Data"""
2
+ import pandas as pd
3
+
4
+ from statsmodels .datasets import utils as du
5
+
4
6
5
7
__docformat__ = 'restructuredtext'
6
8
37
39
38
40
The data returned by load_pandas contains the dates as the index.
39
41
"""
40
- import pandas as pd
41
-
42
- from statsmodels .datasets import utils as du
43
42
44
43
45
44
def load_pandas ():
Original file line number Diff line number Diff line change 1
1
"""First 100 days of the US House of Representatives 1995"""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
44
45
Committee names are included as a variable in the data file though not
45
46
returned by load.
46
47
"""
47
- from statsmodels .datasets import utils as du
48
48
49
49
50
50
def load_pandas ():
Original file line number Diff line number Diff line change 1
1
"""World Copper Prices 1951-1975 dataset."""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
38
39
39
40
Years are included in the data file though not returned by load.
40
41
"""
41
- from statsmodels .datasets import utils as du
42
42
43
43
44
44
def _get_data ():
Original file line number Diff line number Diff line change 1
1
"""US Capital Punishment dataset."""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
41
42
42
43
State names are included in the data file, though not returned by load.
43
44
"""
44
- from statsmodels . datasets import utils as du
45
+
45
46
46
47
def load_pandas ():
47
48
"""
Original file line number Diff line number Diff line change 1
1
"""El Nino dataset, 1950 - 2010"""
2
+ from statsmodels .datasets import utils as du
2
3
3
4
__docformat__ = 'restructuredtext'
4
5
32
33
TEMPERATURE - average sea surface temperature in degrees Celcius
33
34
(12 columns, one per month).
34
35
"""
35
- from statsmodels .datasets import utils as du
36
36
37
37
38
38
def load_pandas ():
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env python
2
-
3
1
"""Name of dataset."""
2
+ from statsmodels .datasets import utils as du
4
3
5
4
__docformat__ = 'restructuredtext'
6
5
30
29
income - annual household income (Belgian francs)
31
30
foodexp - annual household food expenditure (Belgian francs)
32
31
"""
33
- from statsmodels .datasets import utils as du
34
32
35
33
def load (as_pandas = None ):
36
34
"""
@@ -57,4 +55,3 @@ def load_pandas():
57
55
58
56
def _get_data ():
59
57
return du .load_csv (__file__ , 'engel.csv' )
60
-
You can’t perform that action at this time.
0 commit comments