Suppose you got a person’s regist time in one column and his birth date in another column, now you need to calculate his age when he did the registration. There are two ways to reach this result.

- With the help of relativedelta

1 | from dateutil import relativedelta |

- With the help of np.timedelta64

1 | import numpy as np |