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

Bugfix/deprecation num py #77

Conversation

PietropaoloFrisoni
Copy link
Collaborator

Fixes #72. Creating a numpy ndarray from ragged nested sequences is deprecated.

It is now necessary to specify the additional parameter 'dtype=object'.

The "append" method in Pandas is deprecated since version 1.4.0.

It can still be called with the underscore prefix, which allows to easily update the code (and it goes very well with black formatter).

In future versions, it might be necessary to replace "DataFrame.append" with "Pandas.concat".
…t64 if the allocation only contains integers.

An instance of numpy.int64 is not recognized as instance of int, as they are two different classes.

This causes the error message since the total investment is not recognized as integer.

Courious: trying with allocations equal to 20^(200), the returned number is an instance of "int" instead of "numpy.int64".
…ences is deprecated.

It is now necessary to specify the additional parameter 'dtype=object'.
@fmilthaler fmilthaler self-assigned this Jul 6, 2023
@fmilthaler
Copy link
Owner

Thanks again. That looks good to me. Once the other PRs are merged (and this one updated), I'll approve and merge this one! :)

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

Successfully merging this pull request may close these issues.

Depciation warning 5.0
2 participants