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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kaizenstat
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Zero-friction AutoML + Data Cleaning Toolkit
5
5
  Author: Masuddar Rahman
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
1
  from .core import KaizenStat, DataEngine, detect_device
2
2
 
3
- __version__ = "0.2.2"
3
+ __version__ = "0.2.3"
4
4
 
5
5
  __all__ = ["KaizenStat", "DataEngine", "detect_device", "__version__"]
6
6
 
@@ -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([
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kaizenstat
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Zero-friction AutoML + Data Cleaning Toolkit
5
5
  Author: Masuddar Rahman
6
6
  Requires-Python: >=3.8
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="kaizenstat",
5
- version="0.2.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