Date assembly condition

Report a typo

In the theory section, we mentioned how you can use pd.to_datetime() to assemble a single date from various columns containing day, month, year, etc. Is there a condition that must be fulfilled by the DataFrame so we could run this

df['date'] = pd.to_datetime(df)

and get the date column in the pandas datetime format?

Select one option from the list
___

Create a free account to access the full topic