convert date to timestamp for pandas code example
Example 1: pandas change dtype to timestamp
pd.to_datetime(df.column)
Example 2: date parser python pandas
import pandas as pd
values = {'dates': ['20190902','20190913','20190921'],
'status': ['Opened','Opened','Closed']
}
df = pd.DataFrame(values, columns = ['dates','status'])
print (df)
print (df.dtypes)