我有一个带有列的数据帧.在我的模式栏中,有多个以句点结尾的句子.我需要每句话周围有一个双引号.
下面是原文
patterns |
---|
Keep related supplies in the same area., Make an effort to clean a dedicated workspace after every session., Place loose supplies in large, clearly visible containers., Use clotheslines and clips to hang sketches, photos, and reference material., Use every inch of the room for storage, especially vertical space., Use chalkboard paint to make space for drafting ideas right on the walls., Purchase a label maker to make your organization strategy semi permanent., Make a habit of throwing out old, excess, or useless stuff each month. |
我需要的结果是:
patterns |
---|
"Keep related supplies in the same area.", "Make an effort to clean a dedicated workspace after every session.", "Place loose supplies in large, clearly visible containers.", "Use clotheslines and clips to hang sketches, photos, and reference material.", "Use every inch of the room for storage, especially vertical space.", "Use chalkboard paint to make space for drafting ideas right on the walls.", "Purchase a label maker to make your organization strategy semi permanent.", "Make a habit of throwing out old, excess, or useless stuff each month." |
已经做过的事,
df['patterns'] = df['patterns'].astype(str)