dataiter 0.9999__tar.gz → 1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dataiter-0.9999 → dataiter-1.0}/PKG-INFO +1 -1
- {dataiter-0.9999 → dataiter-1.0}/dataiter/__init__.py +1 -1
- {dataiter-0.9999 → dataiter-1.0}/dataiter/dtypes.py +6 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/regex.py +1 -1
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_data_frame.py +2 -3
- {dataiter-0.9999 → dataiter-1.0}/pyproject.toml +1 -1
- {dataiter-0.9999 → dataiter-1.0}/.gitignore +0 -0
- {dataiter-0.9999 → dataiter-1.0}/AUTHORS.md +0 -0
- {dataiter-0.9999 → dataiter-1.0}/COPYING +0 -0
- {dataiter-0.9999 → dataiter-1.0}/README.md +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/aggregate.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/data_frame.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/deco.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/dt.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/geojson.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/io.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/list_of_dicts.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/__init__.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_aggregate.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_dt.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_geojson.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_io.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_list_of_dicts.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_regex.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_util.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_vector.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/util.py +0 -0
- {dataiter-0.9999 → dataiter-1.0}/dataiter/vector.py +0 -0
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
21
|
# THE SOFTWARE.
|
|
22
22
|
|
|
23
|
+
import warnings
|
|
24
|
+
|
|
23
25
|
from numpy.dtypes import StringDType
|
|
24
26
|
|
|
25
27
|
#: Instance of NumPy variable-width StringDType used
|
|
@@ -30,3 +32,7 @@ string = StringDType(na_object="")
|
|
|
30
32
|
# input, a distinction between NA and blank cannot usually be made.
|
|
31
33
|
# TODO: Consider changing this to something like ':NA:'.
|
|
32
34
|
# https://numpy.org/doc/stable/user/basics.strings.html#missing-data-support
|
|
35
|
+
|
|
36
|
+
# Ignore pointless warnings about using StringDType in numpy.savez.
|
|
37
|
+
_pattern = "Custom dtypes are saved as python objects using the pickle protocol"
|
|
38
|
+
warnings.filterwarnings("ignore", message=_pattern, category=UserWarning)
|
|
@@ -129,7 +129,7 @@ def sub(pattern, repl, string, count=0, flags=0):
|
|
|
129
129
|
out, na = _prep(string, dtypes.string, dtypes.string.na_object)
|
|
130
130
|
for i in np.flatnonzero(~na):
|
|
131
131
|
out[i] = re.sub(pattern, repl, string[i], count=count, flags=flags)
|
|
132
|
-
return Vector.fast(out,
|
|
132
|
+
return Vector.fast(out, str)
|
|
133
133
|
|
|
134
134
|
def subn(pattern, repl, string, count=0, flags=0):
|
|
135
135
|
"""
|
|
@@ -31,9 +31,8 @@ from dataiter import test
|
|
|
31
31
|
from pathlib import Path
|
|
32
32
|
from unittest.mock import patch
|
|
33
33
|
|
|
34
|
-
#
|
|
35
|
-
|
|
36
|
-
IGNORE_NPZ_PICKLE_WARNING = "ignore:Custom dtypes are saved as python objects using the pickle protocol."
|
|
34
|
+
# See dataiter/dtypes.py for the equivalent non-test ignore.
|
|
35
|
+
IGNORE_NPZ_PICKLE_WARNING = "ignore:Custom dtypes are saved as python objects using the pickle protocol"
|
|
37
36
|
|
|
38
37
|
class TestDataFrameColumn:
|
|
39
38
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|