summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_histograms.py
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Improve histogram bins="auto" for data with little variance (#10739)Varun Nayyar2018-04-091-0/+18
| | | Now falls back on sturges estimator when the IQR is zero
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-061-9/+4
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* TST: Switch to using pytest markersCharles Harris2018-04-041-1/+1
| | | | | | | | | | | Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
* ENH: Add np.histogram_bin_edges (#10591)Kirit Thadaka2018-03-151-1/+15
| | | | | Fixes #10183 Documentation is copied from np.histogram
* BUG: Fix crashes when using float32 values in uniform histogramsEric Wieser2018-02-021-0/+47
| | | | | | | | Fixes #8123, closes #9189, fixes #10319 This is a workaround to #10322, not a fix for it. Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
* ENH: Add support for datetimes to histogramsEric Wieser2017-12-261-0/+25
| | | | Currently only supported for explicit bins
* BUG: Allow nan values in the data when the bins are explicitEric Wieser2017-12-241-0/+25
| | | | | Fixes gh-7503 Closes gh-8984
* BUG: Fix misleading error when coercing to arrayEric Wieser2017-12-241-0/+11
| | | | Closes gh-7864
* MAINT: Move histogram and histogramdd into their own moduleEric Wieser2017-12-101-0/+527
800 self-contained lines are easily enough to go in their own file, as are the 500 lines of tests. For compatibility, the names are still available through `np.lib.function_base.histogram` and `from np.lib.function_base import *` For simplicity of imports, all of the unqualified `np.` names are now qualified