What\'s the easiest way to add an empty column to a pandas DataFrame object? The best I\'ve stumbled upon is something like
DataFrame
df[\'foo\'] = df.ap
You can do
df['column'] = None #This works. This will create a new column with None type df.column = None #This will work only when the column is already present in the dataframe