notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

TypeError: shift() got an unexpected keyword argument 'fill_value' #76

Closed TheDoctorAI closed 5 years ago

TheDoctorAI commented 5 years ago

What happen here?

$ python optimize.py 
Traceback (most recent call last):
  File "optimize.py", line 8, in <module>
    trader = RLTrader()
  File "/home/user/bin/RLTrader/lib/RLTrader.py", line 38, in __init__
    self.initialize_data()
  File "/home/user/bin/RLTrader/lib/RLTrader.py", line 54, in initialize_data
    self.feature_df = add_indicators(self.feature_df.reset_index())
  File "/home/user/bin/RLTrader/lib/util/indicators.py", line 55, in add_indicators
    df["Volume BTC"])
  File "/usr/lib/python3.7/site-packages/ta/volume.py", line 34, in acc_dist_index
    ad = ad + ad.shift(1, fill_value=ad.mean())
TypeError: shift() got an unexpected keyword argument 'fill_value'
kmisoft commented 5 years ago

Update your pandas

On Sun, Jun 30, 2019 at 11:08 PM TheDoctor notifications@github.com wrote:

What happen here?

$ python optimize.py Traceback (most recent call last): File "optimize.py", line 8, in trader = RLTrader() File "/home/user/bin/RLTrader/lib/RLTrader.py", line 38, in init self.initialize_data() File "/home/user/bin/RLTrader/lib/RLTrader.py", line 54, in initialize_data self.feature_df = add_indicators(self.feature_df.reset_index()) File "/home/user/bin/RLTrader/lib/util/indicators.py", line 55, in add_indicators df["Volume BTC"]) File "/usr/lib/python3.7/site-packages/ta/volume.py", line 34, in acc_dist_index ad = ad + ad.shift(1, fill_value=ad.mean()) TypeError: shift() got an unexpected keyword argument 'fill_value'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/notadamking/RLTrader/issues/76?email_source=notifications&email_token=AAMR3LQYSJH5PKSSP42HGZTP5FYJ5A5CNFSM4H4OIVZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4RA6CA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMR3LQUTAUJL3WIOMC6SJ3P5FYJ5ANCNFSM4H4OIVZA .

TheDoctorAI commented 5 years ago

ah, thx