For example, the dataframe looks like:
df = pd.DataFrame(
[[1, 1], [2, 120], [3, 25], [4, np.NaN], [5, 45]],
columns=["ID", "Age"])
In the Age column, the values below 5 and greater than 100 have to convert to NaN.
For example, the dataframe looks like:
df = pd.DataFrame(
[[1, 1], [2, 120], [3, 25], [4, np.NaN], [5, 45]],
columns=["ID", "Age"])
In the Age column, the values below 5 and greater than 100 have to convert to NaN.