dragon-ml-toolbox 3.5.0__tar.gz → 3.5.1__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.

Potentially problematic release.


This version of dragon-ml-toolbox might be problematic. Click here for more details.

Files changed (30) hide show
  1. {dragon_ml_toolbox-3.5.0/dragon_ml_toolbox.egg-info → dragon_ml_toolbox-3.5.1}/PKG-INFO +1 -1
  2. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1/dragon_ml_toolbox.egg-info}/PKG-INFO +1 -1
  3. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ETL_engineering.py +5 -6
  4. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/data_exploration.py +1 -1
  5. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/pyproject.toml +1 -1
  6. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/LICENSE +0 -0
  7. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/LICENSE-THIRD-PARTY.md +0 -0
  8. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/README.md +0 -0
  9. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/SOURCES.txt +0 -0
  10. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
  11. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/requires.txt +0 -0
  12. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
  13. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/GUI_tools.py +0 -0
  14. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/MICE_imputation.py +0 -0
  15. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_callbacks.py +0 -0
  16. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_evaluation.py +0 -0
  17. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_trainer.py +0 -0
  18. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_tutorial.py +0 -0
  19. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/PSO_optimization.py +0 -0
  20. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/RNN_forecast.py +0 -0
  21. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/VIF_factor.py +0 -0
  22. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/__init__.py +0 -0
  23. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/_particle_swarm_optimization.py +0 -0
  24. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/_pytorch_models.py +0 -0
  25. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/datasetmaster.py +0 -0
  26. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ensemble_learning.py +0 -0
  27. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/handle_excel.py +0 -0
  28. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/logger.py +0 -0
  29. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/utilities.py +0 -0
  30. {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 3.5.0
3
+ Version: 3.5.1
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: Karl Loza <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 3.5.0
3
+ Version: 3.5.1
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: Karl Loza <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -48,13 +48,12 @@ class ColumnCleaner:
48
48
  ## Usage Example
49
49
 
50
50
  ```python
51
- phone_rules = {
52
- # Matches (123) 456-7890 and reformats to 123-456-7890
53
- r'\((\d{3})\)\s*(\d{3})-(\d{4})': r'$1-$2-$3'
51
+ id_rules = {
52
+ # Matches 'ID-12345' or 'ID 12345' and reformats to 'ID:12345'
53
+ r'ID[- ](\d+)': r'ID:$1'
54
54
  }
55
55
 
56
- phone_cleaner = ColumnCleaner(column_name='phone_number', rules=phone_rules)
57
-
56
+ id_cleaner = ColumnCleaner(column_name='user_id', rules=id_rules)
58
57
  # This object would then be passed to a DataFrameCleaner.
59
58
  ```
60
59
  """
@@ -529,7 +528,7 @@ class KeywordDummifier:
529
528
 
530
529
  categorize_expr = categorize_expr.otherwise(None).alias("category")
531
530
 
532
- temp_df = pl.DataFrame(categorize_expr)
531
+ temp_df = pl.select(categorize_expr)
533
532
  df_with_dummies = temp_df.to_dummies(columns=["category"])
534
533
 
535
534
  final_columns = []
@@ -91,7 +91,7 @@ def drop_zero_only_columns(df: pd.DataFrame, verbose: bool=True) -> pd.DataFrame
91
91
  continue
92
92
 
93
93
  # For numeric columns, check if there's at least one non-zero value.
94
- if (column != 0).any():
94
+ if (column.fillna(0) != 0).any():
95
95
  cols_to_keep.append(col_name)
96
96
 
97
97
  dropped_columns = original_columns - set(cols_to_keep)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dragon-ml-toolbox"
3
- version = "3.5.0"
3
+ version = "3.5.1"
4
4
  description = "A collection of tools for data science and machine learning projects."
5
5
  authors = [
6
6
  { name = "Karl Loza", email = "luigiloza@gmail.com" }