Answers for "pandas select only earliest event for duplicates"

0

pandas select only earliest event for duplicates

data_all.sort_values(data_all.columns.tolist())\
          .drop_duplicates(subset=['CB date'], keep='first')
Posted by: Guest on September-29-2021

Code answers related to "pandas select only earliest event for duplicates"

Python Answers by Framework

Browse Popular Code Answers by Language