I have a dataframe that contains
user_id date browser conversion test sex age country 1 2015-12-03 IE 1 0 M 32
IIUC you need exclude column date also:
date
columns = [c for c in columns if c not in ["test", 'date']]
because error:
TypeError: float() argument must be a string or a number, not 'Timestamp'