kaizenstat 0.2.2__tar.gz → 0.2.3__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.
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/PKG-INFO +1 -1
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat/__init__.py +1 -1
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat/core.py +3 -3
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/PKG-INFO +1 -1
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/setup.py +1 -1
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/README.md +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat/cli.py +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/SOURCES.txt +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/dependency_links.txt +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/entry_points.txt +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/requires.txt +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/kaizenstat.egg-info/top_level.txt +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/pyproject.toml +0 -0
- {kaizenstat-0.2.2 → kaizenstat-0.2.3}/setup.cfg +0 -0
|
@@ -718,7 +718,7 @@ for col in list(df.columns):
|
|
|
718
718
|
num_features = {num_features}
|
|
719
719
|
cat_features = {cat_features}
|
|
720
720
|
|
|
721
|
-
X = df[num_features + cat_features]
|
|
721
|
+
X = df[num_features + cat_features].copy()
|
|
722
722
|
y = df["{target}"]
|
|
723
723
|
{"" if not needs_label_encoder else """
|
|
724
724
|
# Encode string labels
|
|
@@ -727,9 +727,9 @@ y = le.fit_transform(y)
|
|
|
727
727
|
"""}
|
|
728
728
|
# Fill missing values
|
|
729
729
|
if num_features:
|
|
730
|
-
X[num_features] = X[num_features].fillna(X[num_features].median())
|
|
730
|
+
X.loc[:, num_features] = X[num_features].fillna(X[num_features].median())
|
|
731
731
|
for col in cat_features:
|
|
732
|
-
X[col] = X[col].fillna(X[col].mode().iloc[0] if not X[col].mode().empty else "Unknown")
|
|
732
|
+
X.loc[:, col] = X[col].fillna(X[col].mode().iloc[0] if not X[col].mode().empty else "Unknown")
|
|
733
733
|
|
|
734
734
|
# 4. Preprocessing Pipeline
|
|
735
735
|
preprocessor = ColumnTransformer([
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="kaizenstat",
|
|
5
|
-
version="0.2.
|
|
5
|
+
version="0.2.3",
|
|
6
6
|
author="Masuddar Rahman",
|
|
7
7
|
description="Zero-friction AutoML + Data Cleaning Toolkit",
|
|
8
8
|
long_description=open("README.md").read() if open("README.md") else "",
|
|
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
|