additory 0.1.1a1__tar.gz → 0.1.1a3__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 (67) hide show
  1. {additory-0.1.1a1 → additory-0.1.1a3}/PKG-INFO +2 -1
  2. {additory-0.1.1a1 → additory-0.1.1a3}/additory/__init__.py +1 -1
  3. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/result.py +14 -1
  4. {additory-0.1.1a1 → additory-0.1.1a3}/additory.egg-info/PKG-INFO +2 -1
  5. {additory-0.1.1a1 → additory-0.1.1a3}/additory.egg-info/requires.txt +1 -0
  6. {additory-0.1.1a1 → additory-0.1.1a3}/pyproject.toml +6 -1
  7. {additory-0.1.1a1 → additory-0.1.1a3}/README.md +0 -0
  8. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/__init__.py +0 -0
  9. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/column_selector.py +0 -0
  10. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/distributions.py +0 -0
  11. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/extractors.py +0 -0
  12. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/knn_imputation.py +0 -0
  13. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/strategy_parser.py +0 -0
  14. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/unit_conversions.py +0 -0
  15. {additory-0.1.1a1 → additory-0.1.1a3}/additory/common/validation.py +0 -0
  16. {additory-0.1.1a1 → additory-0.1.1a3}/additory/core/__init__.py +0 -0
  17. {additory-0.1.1a1 → additory-0.1.1a3}/additory/core/backend.py +0 -0
  18. {additory-0.1.1a1 → additory-0.1.1a3}/additory/core/config.py +0 -0
  19. {additory-0.1.1a1 → additory-0.1.1a3}/additory/core/logging.py +0 -0
  20. {additory-0.1.1a1 → additory-0.1.1a3}/additory/core/memory_manager.py +0 -0
  21. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/__init__.py +0 -0
  22. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/compiler.py +0 -0
  23. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/engine.py +0 -0
  24. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/integrity.py +0 -0
  25. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/loader.py +0 -0
  26. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/parser.py +0 -0
  27. {additory-0.1.1a1 → additory-0.1.1a3}/additory/expressions/resolver.py +0 -0
  28. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/__init__.py +0 -0
  29. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/__init__.py +0 -0
  30. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/cardinality.py +0 -0
  31. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/correlations.py +0 -0
  32. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/distributions.py +0 -0
  33. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/duplicates.py +0 -0
  34. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/features.py +0 -0
  35. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/imputation.py +0 -0
  36. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/outliers.py +0 -0
  37. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/patterns.py +0 -0
  38. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/presets.py +0 -0
  39. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/quality.py +0 -0
  40. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/timeseries.py +0 -0
  41. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/analyze/types.py +0 -0
  42. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/expressions/__init__.py +0 -0
  43. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/snapshot/__init__.py +0 -0
  44. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/snapshot/filter.py +0 -0
  45. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/__init__.py +0 -0
  46. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/mode_detector.py +0 -0
  47. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/strategies/__init__.py +0 -0
  48. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/strategies/advanced.py +0 -0
  49. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/strategies/augmentative.py +0 -0
  50. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/strategies/generative.py +0 -0
  51. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/synthetic/strategies/presets.py +0 -0
  52. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/to/__init__.py +0 -0
  53. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/to/lookup.py +0 -0
  54. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/to/merge.py +0 -0
  55. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/to/sort.py +0 -0
  56. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/to/summarize.py +0 -0
  57. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/__init__.py +0 -0
  58. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/datetime.py +0 -0
  59. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/extract.py +0 -0
  60. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/harmonize.py +0 -0
  61. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/knn.py +0 -0
  62. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/onehotencoding.py +0 -0
  63. {additory-0.1.1a1 → additory-0.1.1a3}/additory/functions/transform/transpose.py +0 -0
  64. {additory-0.1.1a1 → additory-0.1.1a3}/additory.egg-info/SOURCES.txt +0 -0
  65. {additory-0.1.1a1 → additory-0.1.1a3}/additory.egg-info/dependency_links.txt +0 -0
  66. {additory-0.1.1a1 → additory-0.1.1a3}/additory.egg-info/top_level.txt +0 -0
  67. {additory-0.1.1a1 → additory-0.1.1a3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: additory
3
- Version: 0.1.1a1
3
+ Version: 0.1.1a3
4
4
  Summary: Data augmentation library with Polars backend
5
5
  Author-email: Additory Team <team@additory.dev>
6
6
  License: MIT
@@ -22,6 +22,7 @@ Description-Content-Type: text/markdown
22
22
  Requires-Dist: polars>=0.20.0
23
23
  Requires-Dist: pandas>=2.0.0
24
24
  Requires-Dist: numpy>=1.24.0
25
+ Requires-Dist: pyarrow>=14.0.0
25
26
  Provides-Extra: dev
26
27
  Requires-Dist: pytest>=7.0.0; extra == "dev"
27
28
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
@@ -57,7 +57,7 @@ add = SimpleNamespace(
57
57
  )
58
58
 
59
59
  # Version
60
- __version__ = "0.1.1a1"
60
+ __version__ = "0.1.1a3"
61
61
 
62
62
  # Public API
63
63
  __all__ = ['add', '__version__']
@@ -43,7 +43,20 @@ class DataFrameResult:
43
43
 
44
44
  # Extract common metadata
45
45
  self.input_shape = metadata.get('input_shape', (0, 0))
46
- self.output_shape = (df.height, df.width)
46
+
47
+ # Get shape in a backend-agnostic way
48
+ # Note: hasattr() doesn't work reliably with pandas due to __getattr__ magic
49
+ # so we use try-except instead
50
+ try:
51
+ # Try Polars attributes first
52
+ self.output_shape = (df.height, df.width)
53
+ except (AttributeError, TypeError):
54
+ # Fall back to pandas/cuDF shape attribute
55
+ try:
56
+ self.output_shape = df.shape
57
+ except (AttributeError, TypeError):
58
+ self.output_shape = (0, 0)
59
+
47
60
  self.columns_added = metadata.get('columns_added', [])
48
61
  self.columns_removed = metadata.get('columns_removed', [])
49
62
  self.execution_time = metadata.get('execution_time', 0.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: additory
3
- Version: 0.1.1a1
3
+ Version: 0.1.1a3
4
4
  Summary: Data augmentation library with Polars backend
5
5
  Author-email: Additory Team <team@additory.dev>
6
6
  License: MIT
@@ -22,6 +22,7 @@ Description-Content-Type: text/markdown
22
22
  Requires-Dist: polars>=0.20.0
23
23
  Requires-Dist: pandas>=2.0.0
24
24
  Requires-Dist: numpy>=1.24.0
25
+ Requires-Dist: pyarrow>=14.0.0
25
26
  Provides-Extra: dev
26
27
  Requires-Dist: pytest>=7.0.0; extra == "dev"
27
28
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
@@ -1,6 +1,7 @@
1
1
  polars>=0.20.0
2
2
  pandas>=2.0.0
3
3
  numpy>=1.24.0
4
+ pyarrow>=14.0.0
4
5
 
5
6
  [dev]
6
7
  pytest>=7.0.0
@@ -2,9 +2,13 @@
2
2
  requires = ["setuptools>=65.0", "wheel"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
+ [tool.setuptools.packages.find]
6
+ where = ["."]
7
+ include = ["additory*"]
8
+
5
9
  [project]
6
10
  name = "additory"
7
- version = "0.1.1a1"
11
+ version = "0.1.1a3"
8
12
  description = "Data augmentation library with Polars backend"
9
13
  readme = "README.md"
10
14
  requires-python = ">=3.8"
@@ -29,6 +33,7 @@ dependencies = [
29
33
  "polars>=0.20.0",
30
34
  "pandas>=2.0.0",
31
35
  "numpy>=1.24.0",
36
+ "pyarrow>=14.0.0",
32
37
  ]
33
38
 
34
39
  [project.optional-dependencies]
File without changes
File without changes