I have a dataframe
df = pd.DataFrame(data=np.arange(10),columns=[\'v\']).astype(float)
How to make sure that the numbers in v
v
Here's a simpler, and probably faster, approach:
(df[col] % 1 == 0).all()
To ignore nulls:
(df[col].fillna(-9999) % 1 == 0).all()