"Order Date" is a column in my DataFrame. It consists "12/30/19 00:01" type of values.
I want a new column named "Months" in the same DataFrame, which only consist of the month from "Order Dates" (the two first integers).
I've tried this to sort out the month part of "Order Dates", but it doesn't work properly:
months = []
months = df[:, f"{list(map(lambda x: x[:2], months))}"]
It would be amazing if you could help me with this problem.
If the df was: