new dataframe based on other dataframe

PHOTO EMBED

Mon Jan 10 2022 14:42:43 GMT+0000 (Coordinated Universal Time)

Saved by @CaoimhedeFrein #python

##straight copy of the columns
seg_sales = txns1[['seg_met','ADV']].copy()


##copy of only unique values in the column
seg_sales1 = txns1[['seg_met','segment', 'distributionMethodSubType', 'ADV']].drop_duplicates()
content_copyCOPY