How to check if float pandas column contains only integer numbers?
How to check if float pandas column contains only integer numbers? Question: I have a dataframe df = pd.DataFrame(data=np.arange(10),columns=[‘v’]).astype(float) How to make sure that the numbers in v are whole numbers? I am very concerned about rounding/truncation/floating point representation errors Asked By: 00__00__00 || Source Answers: Comparison with astype(int) Tentatively convert your column to int …