upgini 1.2.113a3974.dev2__py3-none-any.whl → 1.2.114a1__py3-none-any.whl

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.
upgini/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.113a3974.dev2"
1
+ __version__ = "1.2.114a1"
upgini/dataset.py CHANGED
@@ -343,7 +343,9 @@ class Dataset:
343
343
  if col in mandatory_columns:
344
344
  self.data["valid_mandatory"] = self.data["valid_mandatory"] & self.data[f"{col}_is_valid"]
345
345
 
346
- invalid_values = list(set(self.data.loc[self.data[f"{col}_is_valid"] == 0, col].head().values))
346
+ # Use stable pandas API across versions: Series.unique keeps order
347
+ # and collapses multiple NaNs into a single NaN
348
+ invalid_values = self.data.loc[self.data[f"{col}_is_valid"] == 0, col].unique().tolist()[:5]
347
349
  valid_share = self.data[f"{col}_is_valid"].sum() / nrows
348
350
  original_col_name = self.columns_renaming[col]
349
351
  validation_stats[original_col_name] = {}