Perfect your answer, I have been looking for this subject for a long time and nothing was so enlightening.
However, my result is returning 2 days more than it should.
My code:
import pandas as pd
df = pd.DataFrame({'DATA_ATUALIZACAO': [44082.507682, 43193]})
df['DATA_ATUALIZACAO'] = pd.to_datetime(df['DATA_ATUALIZACAO'],unit='d',origin='1900-01-01')
print(df)
return:
DATA_ATUALIZACAO
2020-09-10 12:11:03.724800
2018-04-05 00:00:00.000000
correct value:
Value Date
44082,50768200000 08/09/2020
43193,00000000000 03/04/2018
Please, is it possible to guide me how to solve this?