这是我的dataFrame:
- name: MONGO_HOST
value: 'mongodb.default.svc.cluster.local:27017'
我想删除该空字符串,我使用了很多语法,但我不知道,我不能这样做
输出:应用self.animate(withDuration: 0.2, animations: {
self.someButton.setAlpha(0.5)
}, completion: {
})
Ordered Items ord_datetime Delivered At1 Delivered
13 39 2018-01-25 14:11:06 "25-01-2018 16:40 pm" None
14 20 2018-01-25 10:53:41 "25-01-2018 14:26 pm" None
15 13 2018-01-22 19:53:26 "22-01-2018 21:09 pm" None
16 11 2018-01-22 17:41:20 "" None
我尝试过的事情
df.head().to_dict()
查找空字符串,但它返回 {13: ' "25-01-2018 16:40 pm"',
14: ' "25-01-2018 14:26 pm"',
15: ' "22-01-2018 21:09 pm"',
16: ' ""',
17: ' "21-01-2018 21:56 pm"'}
((df1.values == "").sum())
替换为0
,但它将替换所有值""
期望输出:
NaN