Adding new column to a dataframe

PHOTO EMBED

Fri Dec 24 2021 17:02:40 GMT+0000 (Coordinated Universal Time)

Saved by @somuSan #python #pandas #dataframe

lins = pd.Series(lines, name='img_path')
train_df = pd.concat([train_df, lins], axis=1)
content_copyCOPY