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?
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?