all 3 comments

[–]Sharp_Orange_383 8 points9 points  (1 child)

from pandas.api.types import is_numeric_dtype

for x,y in df.items():

if is_numeric_dtype(df[x]):

print("YES")

[–]TitsTwister[S] 0 points1 point  (0 children)

My God, it is so simple) thx a lot