Get The Modulus of Values in a DataFrame Column

Python

 1|  df['modulus'] = df['Age'] % 2
Did you find this snippet useful?

Sign up for free to to add this to your code library