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]

Want to kickstart your project?Use the new AI Studio to create your code