Generation

generate functionFri, 03 Feb 2023

generate a unique id for each line of the pandas dataframe

def unique_id(df, col1, col2, col3): return df[col1]+df[col2]+df[col3]

Questions about programming?Chat with your personal AI assistant