mktdata.py
def has_split_dividents(mdata, from_date, to_date):
    ''' Verifies if market data interval has splits, dividends '''
    from_diff = abs(mdata['close'][from_date] - mdata['adj_close'][from_date])
    to_diff = abs(mdata['close'][to_date] - mdata['adj_close'][to_date])
    if approx_equal(from_diff, to_diff, 0.0001):
        return False
    return not percent_equal(from_diff, to_diff, mdata['close'][to_date], 0.8)
 Verifies if market data interval has splits, dividends 
Verifies if market data interval has splits, dividends
Verifies if market data interval has splits dividends
def has_split_dividents(mdata, from_date, to_date):
    from_diff = abs(mdata['close'][from_date] - mdata['adj_close'][from_date])
    to_diff = abs(mdata['close'][to_date] - mdata['adj_close'][to_date])
    if approx_equal(from_diff, to_diff, 0.0001):
        return False
    return not percent_equal(from_diff, to_diff, mdata['close'][to_date], 0.8)
def has_split_dividents ( mdata , from_date , to_date ) : from_diff = abs ( mdata [ 'close' ] [ from_date ] - mdata [ 'adj_close' ] [ from_date ] ) to_diff = abs ( mdata [ 'close' ] [ to_date ] - mdata [ 'adj_close' ] [ to_date ] ) if approx_equal ( from_diff , to_diff , 0.0001 ) : return False return not percent_equal ( from_diff , to_diff , mdata [ 'close' ] [ to_date ] , 0.8 )
Verifies if market data interval has splits, dividends
Verifies if market data interval has splits dividends
''' Verifies if market data interval has splits, dividends '''
mdata
from_date
to_date