This line of code lets me extract the columns whose name contains the substring a.
a
data = {"a":[1], "a1":[2]} df = pd.DataFrame.f