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

Shapeless array returned from IRR calculation #10

Closed
ecatkins opened this issue May 23, 2018 · 1 comment
Closed

Shapeless array returned from IRR calculation #10

ecatkins opened this issue May 23, 2018 · 1 comment
Assignees
Labels

Comments

@ecatkins
Copy link
Contributor

ecatkins commented May 23, 2018

With the move to 0.0.8, constructing an IRR function from an excel expression e.g. =IRR(A1:A3) and then trying to utilise that function produces a shapeless array. It contains the correct answer, but A) it shouldn't be an array B) because it is shapeless you can't index in to retrieve the answer.

Currently hacking around it for my own purposes by doing something like:

result = constructed_irr_function(*args)
if type(result) == formulas.formulas.Array and not result.shape:
    result = result.reshape(1,)[0]

But I will try to look into the underlying reason over the next couple of days.

@vinci1it2000
Copy link
Owner

vinci1it2000 commented May 25, 2018

I have fixed. Now it is returning an array with shape (1, 1).

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

No branches or pull requests

2 participants