Created
June 22, 2015 14:48
-
-
Save anonymous/98cccb17823cace97734 to your computer and use it in GitHub Desktop.
Quandl Settings Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QuandlSettings(): | |
""" | |
This class contains settings for the quandl integration package, settings include, | |
* rows:int - specifies the amount of historical data to extract in [frequency] | |
* column:int - specifies the column in the data-set to use for the regression analysis | |
* frequency:String - select between ("daily"|weekly"|"monthly"|"quarterly"|"annual") | |
* transformation:String - select the numerical transformation ("diff"|"rdiff"|"normalize"|"cumul") | |
* order:String - select order of data between ("asc"|"desc") | |
""" | |
rows = 0 | |
column = 1 | |
frequency = "weekly" | |
transformation = "normalize" | |
order = "desc" | |
def __init__(self, rows, column, frequency="weekly", transformation="normalize", order="desc"): | |
""" | |
This initialization method constructs a new QuandlSettings object | |
""" | |
self.rows = rows | |
self.column = column | |
self.frequency = frequency | |
self.transformation = transformation | |
self.order = order |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment