In [2]: ?sorted
Signature: sorted(iterable, /, *, key=None, reverse=False)
Docstring:
Return a new list containing all items from the iterable in ascending order.
A custom key function can be supplied to customize the sort order, and the
reverse flag can be set to request the result in descending
hi, tracey,
are you allowed to use python sets? if so, you should take a look at them and
their methods:
https://docs.python.org/3.5/tutorial/datastructures.html?highlight=data%20structures#sets
best,
james
From: Tutor [tutor-bounces+jderry=mail.utexas...
hi, eva,
when i ran your code i found a misspell:
result = statsmodels.tsa.statools.adfuller(x,1)
when i fixed 'stattools' --
result = statsmodels.tsa.stattools.adfuller(x,1)
print result
(-2.6825663173365015, 0.077103947319183241, 0, 7, {'5%': -3.4775828571428571,
'1%': -4.9386902332361515, '