question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get financial functions out of main namespace

See original GitHub issue

We have these financial functions that are exported in the main numpy namespace, and are really out of place: http://docs.scipy.org/doc/numpy/reference/routines.financial.html

Also:

  • They have terrible names (even if they weren’t in the main namespace, but especially so given that they are)
  • There are multiple documented, but unimplemented, functions here. WTF.

Let’s move them to numpy.financial (currently they’re also in numpy.lib.financial, but the .lib. part is just noise IMO) with better names and deprecate the current names.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:44 (39 by maintainers)

github_iconTop GitHub Comments

2reactions
WarrenWeckessercommented, Oct 18, 2019

The financial functions are now officially deprecated, and the plan is to remove them from numpy 1.20. We can close this issue.

2reactions
sebergcommented, Sep 22, 2019

The plan is to create the new pypi module before we put in a deprecation warning, and the deprecation warning would explicitly state where to get it.

I do not think we have a way to make sure that withering, does not happen. Although I am not sure that is not already happening right now. I personally hope the opposite happens, not in the sense of numpy-financial growing necessarily, but in the sense of another project filling the need better. I may be wrong, but the numpy financial functions seem pretty limited, and I wonder if having them in numpy rather muffles development of tools outside of numpy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Numpy-discussion] NEP 32: Remove the financial functions ...
Github issue 2880 ("Get financial functions out of main namespace", ... I have submitted "NEP 32: Remove the financial functions from NumPy" ...
Read more >
Financial Class (Microsoft.VisualBasic)
This module supports the Visual Basic run-time library members that perform financial calculations such as depreciation, present and future values, ...
Read more >
Namespace in C++ | Set 1 (Introduction) - GeeksforGeeks
A namespace is a feature added in C++ and is not present in C. A namespace is a declarative region that provides a...
Read more >
Python Function Tutorial: Definition, Types, Namespace and ...
In this article, we will understand the different types of python functions and how to define and call them. We will also understand...
Read more >
6 Important Things to Know About Python Functions - Built In
All Python functions use the same basic structure. First you need to define the function, providing it a name and the arguments necessary ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found