get counts of cloumn as separate column grouped by date in pandas code example Example: select columns to include in new dataframe in python new = old[['A', 'C', 'D']].copy()