Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas irow deprecated #7

Closed
jtromans opened this issue Jan 13, 2018 · 2 comments
Closed

Pandas irow deprecated #7

jtromans opened this issue Jan 13, 2018 · 2 comments

Comments

@jtromans
Copy link

jtromans commented Jan 13, 2018

def ending_balance(dbal):
     return dbal.irow(-1)['close']

This no longer works on the latest version of Pandas > 0.19.2.

Replace with dbal.tail(1)['close'].values[0] or similar. You also have another example in function total_net_profit.

@fja05680
Copy link
Owner

fja05680 commented Jan 13, 2018 via email

@fja05680
Copy link
Owner

replaced dbal.irow() with dbal.iloc()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants