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.
- {dragon_ml_toolbox-3.5.0/dragon_ml_toolbox.egg-info → dragon_ml_toolbox-3.5.1}/PKG-INFO +1 -1
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1/dragon_ml_toolbox.egg-info}/PKG-INFO +1 -1
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ETL_engineering.py +5 -6
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/data_exploration.py +1 -1
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/pyproject.toml +1 -1
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/LICENSE +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/LICENSE-THIRD-PARTY.md +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/README.md +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/SOURCES.txt +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/requires.txt +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/GUI_tools.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/MICE_imputation.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_callbacks.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_evaluation.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_trainer.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ML_tutorial.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/PSO_optimization.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/RNN_forecast.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/VIF_factor.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/__init__.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/_particle_swarm_optimization.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/_pytorch_models.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/datasetmaster.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/ensemble_learning.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/handle_excel.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/logger.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/utilities.py +0 -0
- {dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/setup.cfg +0 -0
|
@@ -48,13 +48,12 @@ class ColumnCleaner:
|
|
|
48
48
|
## Usage Example
|
|
49
49
|
|
|
50
50
|
```python
|
|
51
|
-
|
|
52
|
-
# Matches
|
|
53
|
-
r'
|
|
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
|
-
|
|
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.
|
|
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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/dragon_ml_toolbox.egg-info/top_level.txt
RENAMED
|
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
|
{dragon_ml_toolbox-3.5.0 → dragon_ml_toolbox-3.5.1}/ml_tools/_particle_swarm_optimization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|