在熊猫中,我们有一个功能
>>> x = input()
I want this to\nbe on two lines
>>> x
'I want this to\\nbe on two lines'
>>> print(x)
I want this to\nbe on two lines
>>> x.encode('utf8').decode('unicode_escape')
'I want this to\nbe on two lines'
>>> print(x.encode('utf8').decode('unicode_escape'))
I want this to
be on two lines
>>>
给出所有列中存在的 Nan 的总Perctange
我们如何检查df中整体呈现的 -999 或 0 而不丢失性能,例如不编写单个列代码来使用 count(),然后对所有列执行此操作,而不是 nan 方法