I have the df with following columns:
df.columns
['total_rech_num_6', 'total_rech_num_7', 'total_rech_num_8','max_rech_amt_6', 'max_rech_amt_7', 'max_rech_amt_8','max_amt_6', 'max_amt_7', 'max_amt_8'].
I would like to select only those columns which has 'rech' AND '6' in the column name.
I tried this to select columns with'rech':
recharge_cols = [col for col in df.columns if 'rech' in col]
But i dont kow how to add the other string condition to get the 'rech' AND '6' columns. Need help!!