Here's how to convert a series of booleans to 1 or 0 (integer) in Pandas.

import pandas as pd

df = pd.DataFrame({"val": [True, False]})

df["val"].astype(int)
0    1
1    0
Name: val, dtype: int64