I have a dataset with a date-time column with a specific format. I need to create new features out of this column that means I need to add new columns to the dataframe by extracting information from the above-mentioned date-time column. My sample input dataframe column is like below.
id datetime feature2
1 12/3/2020 0:56 1
2 11/25/2020 13:26 0
The expected output is:
id date hour mints feature2
1 12/3/2020 0 56 1
2 11/25/2020 13 26 0
Pandas apply() method may not work for this as new columns are added. What is the best way to do this?
Is there any way which I can apply a single function on each record of the column to do this by applying on the whole column?