I have a function called ReturnDateRange which will return two dates. I am trying to apply this function on a column called 'zRow' in a dataFrame, and store the result in two different columns.
The below will store both results, as a tuple in one column:
df['t1']= df['zRow'].map(ReturnDateRange)
The following returns a ValueError: Too many values to unpack (expected 2)
df['t1'], df['t2']= df['zRow'].map(ReturnDateRange)
But the function always returns two dates, or a single None.
UPDATE: I tried returning two zeros instead of None. Still get the same error.
Thanks for the help.