Suppose I have dataframes as shown below:
Year Month Day 2003 1 8 2003 2 7
How to combine Year, Month and Day in a newly defined column in the data frame as such, the dataframe will be as follows:
Year Month Day Date 2003 1 8 2003-1-8 2003 2 7 2003-2-7
Any idea on this?
I am using pandas python dataframe
Thanks!
python pandas dataframe
Santiago munez
source share