📅  最后修改于: 2022-03-11 14:45:06.826000             🧑  作者: Mango
# Split a phrase in all rows of a column and make a list of the first word
list_data = [dataset_name.column_name.str.split(' ')[index][0]
for index in range(0, len(dataset_name))]
print(list_data)