Skip to content

Commit

Permalink
varmod.py : put pandas import in try except
Browse files Browse the repository at this point in the history
linear_model.py : fix typo in summary
  • Loading branch information
josef-pkt committed Mar 26, 2011
1 parent a2d5d2f commit 5bcf6d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scikits/statsmodels/regression/linear_model.py
Expand Up @@ -1312,9 +1312,9 @@ def summary(self, yname=None, xname=None, returns='text'):
return part1.as_csv() + '\n' + part2.as_csv() + '\n' + \
part3L.as_csv()
elif returns == 'latex':
print('not avalible yet')
elif returns == html:
print('not avalible yet')
print('not available yet')
elif returns == 'html':
print('not available yet')

if __name__ == "__main__":
import scikits.statsmodels.api as sm
Expand Down
7 changes: 5 additions & 2 deletions scikits/statsmodels/tsa/vector_ar/varmod.py
Expand Up @@ -33,8 +33,11 @@

mat = np.array

import pandas.util.testing as test
st = test.set_trace
try:
import pandas.util.testing as test
st = test.set_trace
except ImportError:
pass

#-------------------------------------------------------------------------------
# VAR process routines
Expand Down

0 comments on commit 5bcf6d8

Please sign in to comment.