extract date from pandas

Solutions on MaxInterview for extract date from pandas by the best coders in the world

showing results for - "extract date from pandas"
Elena
09 Nov 2020
1import pandas as pd
2
3d='2015-01-08 22:44:09' 
4date=pd.to_datetime(d).date()
5print(date)
6