数据帧:
Measure|Value
-------|----
A|1000
B|1000/
C|1000*
D|10
E|1000 0
F|1000
G|5..
H|2
I|w
K|288
L|
M|565
结果:
^{pr2}$
在SQL中,我使用查询:
select Measure,Value from dataframe where isnumeric(value)=0 or patindex('%[^0-9.-]%', value)!=0
如何在python中显示数据帧中的非数值?在
Tags:
使用^{} 和
~
反转布尔掩码:如果列的
dtype
已经是str
,那么您不需要astype(str)
调用相关问题 更多 >
编程相关推荐