What’s the easiest way to add an empty column to a pandas DataFrame object? The best I’ve stumbled upon is something like

df['foo'] = df.apply(lambda _: '', axis=1)

Is there a less perverse method?

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *