df1 = df1.rename(columns={'<lambda>': 'count_3'})
df1.columns = ['{}_{}'.format(x[0], x[1]) for x in df1.columns]
print(df1)
How to do group by and take count of unique and count of some value as aggregate on same column in python pandas?