This is a very basic python question related to adding columns to an existing data frame. Why is it that this
df['Hour'],df['Month'],df['Day'] =""
returns the following error:
ValueError: not enough values to unpack (expected 3, got 0)
but this works fine:
df['Hour'],df['Month'],df['Day'] =["","",""]
This seems odd to me, as in my head it appears as though i am assigning a sequence of 3 blank entries to each individual dataframe column, rather than one set of blanks per column.
I'm new to python so I'm sure the answer is obvious, but would someone mind explaining this to me?