Answers for "extract a date value from a pandas dataframe"

-1

extract DATE from pandas

import pandas as pd

d='2015-01-08 22:44:09' 
date=pd.to_datetime(d).date()
print(date)
Posted by: Guest on May-17-2021

Code answers related to "extract a date value from a pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language