I created a dataframe using the following:
df = pd.DataFrame(np.random.rand(10, 3), columns=['alp1', 'alp2', 'bet1'])
I'd like to get a dataframe containing every columns from df
that have alp
in their names. This is only a light version of my problem, so my real dataframe will have more columns.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…