Here's my data
Id WO
1 56
2 23
3 0
My rule is simple, if WO at least 1 give label 1, if less give 0, here's my expected output
Id WO Label
1 56 1
2 23 1
3 0 0
Here's my code
import math
due_table_2['Label'] = due_table_2.apply(math.ceil(due_table_2['WO ']/1000))
the error message
TypeError: cannot convert the series to <class 'float'>