I have a dataframe with 5 columns. The Date column is of type Object.
df :
DATE
0 2020-06-01T00:00:00.000Z
1 2021-08-01T00:00:00.000Z
2 2021-06-01T00:00:00.000Z
3 2021-07-01T00:00:00.000Z
4 2021-01-01T00:00:00.000Z
I am trying to convert the dataframe into xlsb format so that I can use this excel for further analysis.
Why I need to convert it to xlsb format?
I tried removing the TZ component and convert the column into YMD format by following the answer here. The issue I am facing is even after converting, the date column still has timezone component. And when I am performing imputation and outlier treatment in R, it is unable to fetch the year,month,day fields.
Therefore, I am trying to convert the dataframe into xlsb format and then import it, so that the timezone component doesn't occur and I am able to proceed with my imputation/outlier treatment.
If someone has better ways to remove the timezone component from the columns or any other method to transform the datecolumn into YMD format is most welcome.
I have tried searching in stack overflow. But couldn't find the correct answer.