wrobstory/bearcart

Example #1 gives error

nipunbatra opened this issue · 5 comments

I copied example number 1 as it is and got the following traceback.
NB: I printed Pandas DF to see if data were coming right or not

<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 754 entries, 2010-01-04 00:00:00 to 2012-12-31 00:00:00
Data columns:
AAPL 754 non-null values
GOOG 754 non-null values
dtypes: float64(2)
Traceback (most recent call last):
File "abc.py", line 23, in
vis = bearcart.Chart(price)
File "/usr/local/lib/python2.7/dist-packages/bearcart/bearcart.py", line 101, in init
self.transform_data(data)
File "/usr/local/lib/python2.7/dist-packages/bearcart/bearcart.py", line 138, in transform_data
elif (isinstance(objs['x'], pd.tslib.Timestamp) or
AttributeError: 'module' object has no attribute 'tslib'

Hm, interesting. Which version of Pandas are you using?

I am using 0.8.0
Is it some API change in newer Pandas?

It very well could be- bearcart was developed on Pandas 0.10.1. Maybe make the upgrade, and then if you're still getting an error we'll try to figure out what's happening?

With 0.11 it works well!

Great! Please let me know if you have any other issues (or feature suggestions!)