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.
Files changed (28) hide show
  1. {dataiter-0.9999 → dataiter-1.0}/PKG-INFO +1 -1
  2. {dataiter-0.9999 → dataiter-1.0}/dataiter/__init__.py +1 -1
  3. {dataiter-0.9999 → dataiter-1.0}/dataiter/dtypes.py +6 -0
  4. {dataiter-0.9999 → dataiter-1.0}/dataiter/regex.py +1 -1
  5. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_data_frame.py +2 -3
  6. {dataiter-0.9999 → dataiter-1.0}/pyproject.toml +1 -1
  7. {dataiter-0.9999 → dataiter-1.0}/.gitignore +0 -0
  8. {dataiter-0.9999 → dataiter-1.0}/AUTHORS.md +0 -0
  9. {dataiter-0.9999 → dataiter-1.0}/COPYING +0 -0
  10. {dataiter-0.9999 → dataiter-1.0}/README.md +0 -0
  11. {dataiter-0.9999 → dataiter-1.0}/dataiter/aggregate.py +0 -0
  12. {dataiter-0.9999 → dataiter-1.0}/dataiter/data_frame.py +0 -0
  13. {dataiter-0.9999 → dataiter-1.0}/dataiter/deco.py +0 -0
  14. {dataiter-0.9999 → dataiter-1.0}/dataiter/dt.py +0 -0
  15. {dataiter-0.9999 → dataiter-1.0}/dataiter/geojson.py +0 -0
  16. {dataiter-0.9999 → dataiter-1.0}/dataiter/io.py +0 -0
  17. {dataiter-0.9999 → dataiter-1.0}/dataiter/list_of_dicts.py +0 -0
  18. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/__init__.py +0 -0
  19. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_aggregate.py +0 -0
  20. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_dt.py +0 -0
  21. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_geojson.py +0 -0
  22. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_io.py +0 -0
  23. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_list_of_dicts.py +0 -0
  24. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_regex.py +0 -0
  25. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_util.py +0 -0
  26. {dataiter-0.9999 → dataiter-1.0}/dataiter/test/test_vector.py +0 -0
  27. {dataiter-0.9999 → dataiter-1.0}/dataiter/util.py +0 -0
  28. {dataiter-0.9999 → dataiter-1.0}/dataiter/vector.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dataiter
3
- Version: 0.9999
3
+ Version: 1.0
4
4
  Summary: Simple, light-weight data frames for Python
5
5
  Project-URL: Homepage, https://github.com/otsaloma/dataiter
6
6
  Author-email: Osmo Salomaa <otsaloma@iki.fi>
@@ -25,7 +25,7 @@ import numpy as np
25
25
 
26
26
  from dataiter import util
27
27
 
28
- __version__ = "0.9999"
28
+ __version__ = "1.0"
29
29
 
30
30
  DEFAULT_PEEK_ELEMENTS = 10
31
31
  DEFAULT_PEEK_ITEMS = 3
@@ -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, dtypes.string)
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
- # This UserWarning seems unavoidable when using StringDtype, which unlike
35
- # other dtypes must be instantiated and that custom instance used.
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
 
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["hatchling==1.21.1"]
2
+ requires = ["build==1.2.2.post1", "hatchling==1.21.1"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
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