Module Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num For NameStore Call NameLoad Num AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Str For NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad GeneratorExp Call NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Num Call NameLoad NameLoad CompareInIs SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpSub NameLoad Call NameLoad keyword NameLoad Return SubscriptLoad AttributeLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Str attr Index TupleLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Return SubscriptLoad Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad Index Num decorator_list
N/A N/A sys datetime timedelta pandas.io.data DataReader ProgressBar N/A object N/A N/A 
    Return A simple textual progress bar.

    Parameters
    ----------
    tasks_completed : int
        should be an incremented value to measure the progress of your tasks.
    total_tasks : int
        total number of tasks

    Retruns
    -------
    str :
        A progress bar like [#########  ]

    Example
    -------
    progress_bar = ProgressBar(2)
    def do_stuff():
        # do somethings

    progress_bar.update()
    >>>[# ]

    def do_more_things():
        # do so many things

    progress_bar.update()
    >>>[##]

     __init__ N/A N/A self total_tasks N/A N/A N/A N/A self total_tasks total_tasks N/A N/A self tasks_completed 0 N/A N/A self progress 
[ N/A increment N/A N/A self N/A N/A N/A N/A self tasks_completed 1 N/A completed_task N/A xrange 0 N/A self tasks_completed N/A N/A N/A self progress # N/A incomplete_task N/A xrange N/A self tasks_completed N/A self total_tasks N/A N/A N/A self progress N/A show N/A N/A self N/A N/A N/A N/A N/A N/A sys stdout write N/A N/A self progress ] N/A N/A N/A N/A sys stdout flush N/A update N/A N/A self N/A N/A N/A N/A N/A self increment N/A N/A N/A self show N/A N/A list_intersection N/A N/A left right N/A N/A N/A 
    Returns the intersection between two lists.

    Useful for defining a model's subspace variables with new added variables.

    Parameters
    ----------
    left : list
        a list you'd like to add to.

    right : list
        a list of things your trying to add

    Returns
    -------
    list :
        a list of the intersection between the passed in left and right lists.

     N/A N/A list N/A N/A str N/A right N/A i N/A i N/A xrange 0 N/A len right N/A N/A right N/A i left False N/A stock_price_at_date N/A N/A lookup_date ticker lag N/A 0 N/A N/A 
    Returns the daily share price of a stock for a specified date range.

    Parameters
    ----------
    lookup_date : Datetime.datetime.date
         End date.
    ticker: str
        str corresponding the the stock's ticker symbol.
    lag : int
        length of trading days before start date

    Returns
    --------
    DataFrame :
        A stock's prices over a the given period.
     N/A start N/A lookup_date N/A timedelta days lag N/A N/A N/A N/A DataReader ticker start start end lookup_date data_source yahoo ix N/A N/A 0 5 N/A quater_maker N/A N/A d N/A N/A N/A 
    Return the corresponding quarter for a given date.

    Parameters
    ----------
    d: datetime object
        The date you'd like to process

    Returns
    -------
    str :
        The corresponding quarter in a string.
        ie. 'Q1', 'Q2', 'Q3',  or 'Q4'

     N/A d N/A d month N/A quaters N/A Q1 Q2 Q3 Q4 N/A 1 2 3 N/A 4 5 6 N/A 7 8 9 N/A 10 11 12 N/A N/A N/A list N/A key N/A key N/A N/A quaters keys N/A d N/A quaters N/A key N/A 0 N/A