summaryrefslogtreecommitdiff
path: root/numpy/ma
Commit message (Collapse)AuthorAgeFilesLines
* convert shebang from python to python3 (#15687)Changqing Li2020-03-042-2/+2
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+0
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* MAINT: Remove sys.version checks (gh-#15373)Seth Troisi2020-01-281-5/+0
| | | More sys.version cleanup.
* STY: use 'yield from <expr>' for simple cases (#15444)Mike Taves2020-01-271-6/+3
| | | | | | | | | This PR uses simple cases of PEP 380 to rewrite: for v in g: yield v into: yield from <expr>
* Update core.py with f-strings (issue #15420)Anthony2020-01-261-2/+5
| | | Corrected past shortcomings
* Update core.pyAnthony2020-01-261-27/+16
| | | Replace old strings format to fstrings
* MAINT: Remove Python2 workaroundsSeth Troisi2020-01-231-4/+20
|
* MAINT: Replace basestring with str.Charles Harris2020-01-232-8/+7
| | | | | | | This replaces basestring with str except in - tools/npy_tempita/ - numpy/compat/py3k.py
* MAINT: Python2 CleanupsSeth Troisi2020-01-211-1/+1
|
* NEP: issue deprecation warning when creating ragged array (NEP 34)Matti Picus2020-01-212-3/+3
| | | | This implements NEP 34.
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-9/+1
|
* MAINT: Remove sys.version checks in testsSeth Troisi2020-01-151-5/+0
|
* DOC: fix typosBrian Wignall2020-01-141-1/+1
|
* Changed file extension of ma README.Ross Barnowski2020-01-101-0/+0
| | | | Get github to render the rST correctly.
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-0511-56/+56
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-0315-30/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* Revert "DEP: issue deprecation warning when creating ragged array (NEP 34)"revert-14794-nep-0034-implRalf Gommers2019-12-062-3/+3
|
* Merge pull request #15039 from eric-wieser/fix-weird-reraiseSebastian Berg2019-12-031-2/+1
|\ | | | | BUG: Exceptions tracebacks are dropped
| * BUG: Exceptions tracebacks are droppedEric Wieser2019-12-031-2/+1
| | | | | | | | For some reason this code reconstructed brand new exception objects with no traceback, rather than just re-raising
* | Merge pull request #14794 from mattip/nep-0034-implRalf Gommers2019-12-022-3/+3
|\ \ | | | | | | DEP: issue deprecation warning when creating ragged array (NEP 34)
| * | DEP: issue deprecation warning when creating ragged array (NEP 34)mattip2019-10-312-3/+3
| | |
* | | Merge pull request #14996 from eric-wieser/masked_rows-bad-argumentSebastian Berg2019-12-022-2/+27
|\ \ \ | |_|/ |/| | DEP: Deprecate the axis argument to masked_rows and masked_cols
| * | DEP: Deprecate the axis argument to masked_rows and masked_colsEric Wieser2019-12-022-2/+27
| | | | | | | | | | | | | | | This argument isn't used, and is confusing. (Small test added by seberg)
* | | DOC: Document ma.filled behavior with non-scalar fill_value (#13698)Kriti Singh2019-11-231-8/+33
|/ / | | | | * DOC: Document and deprecate ma.filled behavior with non-scalar fill_value
* | MAINT: revert gh-14800, which gave precedence to OO->O over OO->?mattip2019-11-061-6/+1
| |
* | ENH: add OO->? loops, use np.compare(a, b, dtype=bool), add commentsmattip2019-10-301-0/+1
| |
* | WIP, DEP, ENH: finish richcompare changes from 1.10mattip2019-10-291-1/+5
|/
* DOC: convert `None` to bare None or ``None``mattip2019-10-152-2/+2
|
* DOC: add numpy prefixmattip2019-10-151-14/+14
|
* TST: add test to check that (semi-)public API modules can be importedRalf Gommers2019-09-191-14/+0
| | | | | Also remove `numpy.ma.version.py`, it was not importable and served no purpose.
* DOC: lib: Add more explanation of the weighted average calculation.Warren Weckesser2019-08-261-2/+5
| | | | | Also removed the incorrect comment from the docstring of `numpy.ma.average` about the imaginary part of `weights` being ignored.
* Merge pull request #14290 from eric-wieser/fix-if-fieldsCharles Harris2019-08-221-1/+1
|\ | | | | BUG: Fix misuse of .names and .fields in various places
| * Merge remote-tracking branch 'upstream/master' into fix-if-fieldsEric Wieser2019-08-1910-870/+930
| |\
| * | BUG: Fix detection of structured arrays in mrecordsEric Wieser2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | This check would fail on the structured type `np.dtype([])`. No test, since I don't really understand mrecords
* | | DEP: Deprecate load/dump functions in favour of pickle methodskritisingh12019-08-191-89/+2
| |/ |/|
* | Merge pull request #14039 from sameshl/remove_depr_rank_funcSebastian Berg2019-07-311-18/+1
|\ \ | | | | | | DEP: Remove np.rank which has been deprecated for more than 5 years
| * | DEP: Remove np.rank which has been deprecated for more than 5 yearsSamesh2019-07-311-18/+1
| | | | | | | | | | | | references #7059
* | | Merge pull request #14145 from eric-wieser/fix-14140Sebastian Berg2019-07-302-1/+7
|\ \ \ | | | | | | | | BUG: Remove the broken clip wrapper
| * | | BUG: Remove the broken clip wrapperEric Wieser2019-07-282-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | ndarray.clip is already just a wrapper for the ufunc, so there is no need to do type-specific wrapping here any more Fixes gh-14140
* | | | MAINT: Use equality instead of identity check with literalHarmon2019-07-251-1/+1
| |/ / |/| | | | | Resolves #14123
* | | Merge pull request #13928 from ↵Matti Picus2019-07-111-2/+9
|\ \ \ | | | | | | | | | | | | | | | | MSeifert04/ma-view-not-override-doc-with-ndarray-view DOC: Don't override MaskedArray.view documentation with the one from ndarray.view
| * | | DOC: Don't override MaskedArray.view documentation with the one from ↵MSeifert042019-07-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ndarray.view To document the fill_value parameter it's needed to display the correct docstring of the function instead of overwriting it with the docstring of ndarray.view
* | | | DOC: Remove explicit .next method calls with built-in nextMSeifert042019-07-071-6/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | In some cases the documentation examples failed with an AttributeError because the next method was not there. In a few other cases it still worked but may be more future-proof and ideomatic if they used the next function instead of the next method.
* | | MAINT: Remove unnecessary parenthesis in numpy.ma.coreMSeifert042019-07-061-13/+13
| | |
* | | DOC: Fix typo in "make_mask" documentationMSeifert042019-07-021-1/+1
| | |
* | | Merge pull request #13883 from MSeifert04/replace-integers-with-booleansCharles Harris2019-07-024-17/+17
|\ \ \ | | | | | | | | MAINT: Replace integers in places where booleans are expected
| * | | MAINT: Replace integers in places where booleans are expectedMSeifert042019-07-014-17/+17
| | | |
* | | | DOC: Add missing parameter description for keepdims in MaskedArrayMSeifert042019-07-011-0/+12
|/ / / | | | | | | | | | | | | The methods max, min, ptp were missing the parameter in the documentation.
* | | Deprecate collapsing shape-1 dtype fields to scalars.Antony Lee2019-05-241-1/+2
|/ / | | | | | | | | | | | | | | | | Currently, a field specified as `[(name, dtype, 1)]` is interpreted as a scalar field (i.e., the same as `[(name, dtype)]` or `[(name, dtype, ()]`). This now raises a FutureWarning; in a future version, it will be interpreted as a shape-(1,) field, i.e. the same as `[(name, dtype, (1,))]` (consistently with `[(name, dtype, n)]` with `n>1`, which is already equivalent to `[(name, dtype, (n,)]`).
* | Merge pull request #10308 from eric-wieser/mask-attr-is-viewMatti Picus2019-05-123-10/+19
|\ \ | | | | | | API: Make MaskedArray.mask return a view, rather than the underlying mask