I am using Pandas to read a Sas dataset using read_sas
There is a datetime variable in the SAS dataset, which appears in Pandas as:
Once I convert it to str the date is:
The corresponding date in SAS (not in my Pandas dataset) appears to be a DATETIME21.2
I tried to convert it using
pd.to_datetime(df.mysasdate,format='%d%m%Y%H%M%S') with no success
TypeError: 'float' object is unsliceable
Can anyone help me fix this issue?