Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
python3.11 /
dist-packages /
numpy /
ma /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-04-08 17:01
tests
[ DIR ]
drwxr-xr-x
2025-04-08 17:01
API_CHANGES.txt
3.33
KB
-rw-r--r--
2025-04-08 17:01
LICENSE
1.56
KB
-rw-r--r--
2025-04-08 17:01
README.rst
9.64
KB
-rw-r--r--
2025-04-08 17:01
__init__.py
1.39
KB
-rw-r--r--
2025-04-08 17:01
__init__.pyi
5.9
KB
-rw-r--r--
2025-04-08 17:01
core.py
280.92
KB
-rw-r--r--
2025-04-08 17:01
core.pyi
13.97
KB
-rw-r--r--
2025-04-08 17:01
extras.py
69.36
KB
-rw-r--r--
2025-04-08 17:01
extras.pyi
2.59
KB
-rw-r--r--
2025-04-08 17:01
mrecords.py
26.56
KB
-rw-r--r--
2025-04-08 17:01
mrecords.pyi
1.84
KB
-rw-r--r--
2025-04-08 17:01
testutils.py
10.03
KB
-rw-r--r--
2025-04-08 17:01
timer_comparison.py
15.33
KB
-rw-r--r--
2025-04-08 17:01
Save
Rename
""" ============= Masked Arrays ============= Arrays sometimes contain invalid or missing data. When doing operations on such arrays, we wish to suppress invalid values, which is the purpose masked arrays fulfill (an example of typical use is given below). For example, examine the following array: >>> x = np.array([2, 1, 3, np.nan, 5, 2, 3, np.nan]) When we try to calculate the mean of the data, the result is undetermined: >>> np.mean(x) nan The mean is calculated using roughly ``np.sum(x)/len(x)``, but since any number added to ``NaN`` [1]_ produces ``NaN``, this doesn't work. Enter masked arrays: >>> m = np.ma.masked_array(x, np.isnan(x)) >>> m masked_array(data=[2.0, 1.0, 3.0, --, 5.0, 2.0, 3.0, --], mask=[False, False, False, True, False, False, False, True], fill_value=1e+20) Here, we construct a masked array that suppress all ``NaN`` values. We may now proceed to calculate the mean of the other values: >>> np.mean(m) 2.6666666666666665 .. [1] Not-a-Number, a floating point value that is the result of an invalid operation. .. moduleauthor:: Pierre Gerard-Marchant .. moduleauthor:: Jarrod Millman """ from . import core from .core import * from . import extras from .extras import * __all__ = ['core', 'extras'] __all__ += core.__all__ __all__ += extras.__all__ from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester