I have the following data which has been scraped from a website and I need to convert it into its respective datetime format. Here is the first 5 rows in the column df['Date'].
Currently the dtype of df['Data'] is an Object, but I would like to convert it to being datetime WWYYYY so that I can use it for time series plotting.
When I try the following code, I get the error below.
df["Date"] = pd.to_datetime(df["Date"],format='%W-%Y')
ValueError: Cannot use '%W' or '%U' without day and year
Obviously my starting data does not have the days so this is a bit of a problem. I have no need to present the data in a daily output, so is there a way to introduce an arbitrary day on every date or alternatively (preferred option) to convert to datetime format without a day?
![df['Date'] first 5 rows](https://i.stack.imgur.com/AFAeV.png)