datawig库在留下一些未输入的同时划分了一些列

发布于 2025-02-10 19:01:45 字数 744 浏览 2 评论 0原文

我一直在尝试使用datawig库在数据集中估算丢失值。但是,当我使用datawig库将数据集中的丢失值算时。它在留下两列的同时,将每一列均屈服。这两个列都是dtype:对象。但是,它施加其他对象列。这是我的数据集的可视化:

df.tail(155)

import datawig
df = datawig.SimpleImputer.complete(df)

df.isnull().sum()
PassengerId       0
HomePlanet        0
CryoSleep         0
Cabin           199
Destination       0
Age               0
VIP               0
RoomService       0
FoodCourt         0
ShoppingMall      0
Spa               0
VRDeck            0
Name            200
Transported       0
dtype: int64

​我不知道什么原因。同样,在应用DataWig归纳之前,名称和机舱列中缺少值的数量相同。

I have been trying to impute missing values in my dataset using datawig library. However when I use datawig library to impute the missing values in my dataset. It imputes each and every other column while leaving behind two columns. Both of the columns are of dtype: object. However, it imputes other object columns. Here is the visualization of my dataset:

df.tail(155)

enter image description here

The code to impute the missing values is as follows:

import datawig
df = datawig.SimpleImputer.complete(df)

These are the missing values left behind:

df.isnull().sum()
PassengerId       0
HomePlanet        0
CryoSleep         0
Cabin           199
Destination       0
Age               0
VIP               0
RoomService       0
FoodCourt         0
ShoppingMall      0
Spa               0
VRDeck            0
Name            200
Transported       0
dtype: int64

The missing values for the column named Cabin and Name were left and were not imputed for I do not know what reason. Also before applying datawig imputation the number of missing values in Name and Cabin column were the same.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文