Source code for pyFTS.data.Ethereum
"""
Ethereum to USD quotations
Daily averaged index, by business day, from 2016 to 2018.
Source: https://finance.yahoo.com/quote/ETH-USD?p=ETH-USD
"""
from pyFTS.data import common
import pandas as pd
import numpy as np
[docs]def get_data(field='AVG'):
"""
Get the univariate time series data.
:param field: dataset field to load
:return: numpy array
"""
dat = get_dataframe()
return np.array(dat[field])
[docs]def get_dataframe():
"""
Get the complete multivariate time series data.
:return: Pandas DataFrame
"""
df = common.get_dataframe("ETHUSD.csv", "https://query.data.world/s/qj4ly7o4rl7oq527xzy4v76wkr3hws",
sep=",")
return df