import numpy as np
import pandas as pd
s = pd.Series([True, True, False, True, np.NaN])
s2 = pd.Series([True, True, False, True, np.NaN])
dir(s)
s.astype(bool)
s.bool
s.value_counts()
help(s.value_counts)
s == s2
s.equals(s2)
Evaluating pandas series values with logical expressions and if-statements