i have applied a function to a column of my dataframe, this column contains the date with year, month, day and hour, minute, second and what i would like to do is to separate year, month, day and put it in a column and hour, minute, second put it in another column at the same time, my code looks like this
def change_format(day):
if day != 'nan':
format_1 = datetime.strptime(day, "%a %b %d %H:%M:%S %z %Y")
new_day = format_1.strftime('%d/%m/%Y')
new_time = format_1.strftime('%H:%M:%S')
return new_day,new_time
concatenar['pubDate']=concatenar['pubDate'].apply(change_format)
so far in my column it does not return any values