Task: Extracting Month and Year from Pandas Datetime Column
Task: Extracting Month and Year from Pandas Datetime Column: a task in Terminal-Lego-15k (Harbor dataset). You are working with a pandas DataFrame that contains a datetime column called ArrivalDate . Your task is to extract the year and month components separately from this datetime column and add…
The task
You are working with a pandas DataFrame that contains a datetime column called `ArrivalDate`. Your task is to extract the year and month components separately from this datetime column and add them as new columns to the DataFrame.
Part of PrimeIntellect/Terminal-Lego-15k.