upgini 1.1.222a1__py3-none-any.whl → 1.1.224__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.

Potentially problematic release.


This version of upgini might be problematic. Click here for more details.

upgini/dataset.py CHANGED
@@ -349,7 +349,11 @@ class Dataset: # (pd.DataFrame):
349
349
  self.columns_renaming[ipv4] = original_ip
350
350
 
351
351
  ipv6 = ip + "_v6"
352
- self.data[ipv6] = self.data[ip].apply(self._to_ipv6).apply(self.__ip_to_int).astype(str)
352
+ self.data[ipv6] = (
353
+ self.data[ip].apply(self._to_ipv6)
354
+ .apply(self.__ip_to_int)
355
+ .astype("string").str.replace(".0", "", regex=False)
356
+ )
353
357
  self.data = self.data.drop(columns=ip)
354
358
  self.meaning_types[ipv6] = FileColumnMeaningType.IPV6_ADDRESS
355
359
  self.etalon_def[FileColumnMeaningType.IPV6_ADDRESS.value] = ipv6