I am trying to convert a column containing floats with only .0 as decimals to an integer64. I found some older answers on this forum but they didn't seem to work anymore. Eventually I used:
df_test["column_name"] = df_test['column_name'].apply(lambda x: np.int64(x))
I was wondering if this is best practice in pandas and how this compares to to_numeric()