Add uuid to a new column in a pandas DataFrame November 27, 2023 by Tarik This is one way: df['uuid'] = [uuid.uuid4() for _ in range(len(df.index))]