I'm trying to convert these dates to the number type, but I'm not able to do it.
Input:
import pandas as pd
import datetime as dt
new_df = { 'date': [ '20/08/2008', '21/08/2008','22/08/2008' ], 'valor': ['a','b','c'] }
pd.DataFrame(new_df)
Example:
date valor
0 20/08/2008 a
1 21/08/2008 b
2 22/08/2008 c
Expected:
date valor
0 39680 a
1 39681 b
2 39682 c