33 lines
782 B
Python
33 lines
782 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from ._base import _load_tarfile
|
|
|
|
__all__ = ['load_msft']
|
|
|
|
|
|
def load_msft():
|
|
"""Load the microsoft stock data
|
|
|
|
Financial data for the MSFT stock between the dates of Mar 13, 1986 and
|
|
Nov 10, 2017. This data is part of the Kaggle stock dataset [1]. Features
|
|
are as follows:
|
|
|
|
* Date : datetime
|
|
* Open : float32
|
|
* High : float32
|
|
* Low : float32
|
|
* Close : float32
|
|
* Volume : long
|
|
* OpenInt : int
|
|
|
|
References
|
|
----------
|
|
.. [1] https://www.kaggle.com/borismarjanovic/price-volume-data-for-all-us-stocks-etfs
|
|
|
|
Returns
|
|
-------
|
|
df : pd.DataFrame, shape=(7983, 7)
|
|
A dataframe of endog and exog values.
|
|
""" # noqa:E501
|
|
return _load_tarfile("msft.tar.gz")
|