本文整理汇总了Python中statsmodels.datasets.utils.process_recarray_pandas函数的典型用法代码示例。如果您正苦于以下问题:Python process_recarray_pandas函数的具体用法?Python process_recarray_pandas怎么用?Python process_recarray_pandas使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了process_recarray_pandas函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: load_pandas
def load_pandas():
"""Load the credit card data and returns a Dataset class.
Returns
-------
Dataset instance:
See DATASET_PROPOSAL.txt for more information.
"""
data = _get_data()
return du.process_recarray_pandas(data, endog_idx=0)
开发者ID:Bonfils-ebu,项目名称:statsmodels,代码行数:10,代码来源:data.py
示例2: load_pandas
def load_pandas():
"""Load the anes96 data and returns a Dataset class.
Returns
-------
Dataset instance:
See DATASET_PROPOSAL.txt for more information.
"""
data = _get_data()
return du.process_recarray_pandas(data, endog_idx=5, exog_idx=[10, 2, 6, 7, 8], dtype=float)
开发者ID:Inoryy,项目名称:statsmodels,代码行数:10,代码来源:data.py
示例3: load_pandas
def load_pandas():
"""
Load the Spector dataset and returns a Dataset class instance.
Returns
-------
Dataset instance:
See DATASET_PROPOSAL.txt for more information.
"""
data = _get_data()
return du.process_recarray_pandas(data, endog_idx=3, dtype=float)
开发者ID:0ceangypsy,项目名称:statsmodels,代码行数:11,代码来源:data.py
示例4: load_pandas
def load_pandas():
"""
Loads the RAND HIE data and returns a Dataset class.
----------
endog - response variable, mdvis
exog - design
Returns
Load instance:
a class of the data with array attrbutes 'endog' and 'exog'
"""
from pandas import read_csv
data = read_csv(PATH)
return du.process_recarray_pandas(data, endog_idx=0)
开发者ID:SuperXrooT,项目名称:statsmodels,代码行数:15,代码来源:data.py
示例5: load_pandas
def load_pandas():
"""
Loads the Grunfeld data and returns a Dataset class.
Returns
-------
Dataset instance:
See DATASET_PROPOSAL.txt for more information.
Notes
-----
raw_data has the firm variable expanded to dummy variables for each
firm (ie., there is no reference dummy)
"""
from pandas import DataFrame
data = _get_data()
raw_data = categorical(data, col='firm', drop=True)
ds = du.process_recarray_pandas(data, endog_idx=0)
ds.raw_data = DataFrame(raw_data)
return ds
开发者ID:Cassin123,项目名称:statsmodels,代码行数:20,代码来源:data.py
注:本文中的statsmodels.datasets.utils.process_recarray_pandas函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论