Get The Modulus of Values in a DataFrame Column

Python
Data Preprocessing

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

Sign up to bookmark this in your snippet library

Normalize Windowed Time Series
Python
Data Preprocessing

Scaler | Normalize | Scale | Min-max

4
Pivoting Pandas Dataframes
Python
Data Preprocessing

Pandas

3