Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check for non-datetime value in python

df['Date'] = pd.to_datetime(df['Date'], errors='coerce')
df = df.dropna(subset=['Date'])

df
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #python
ADD COMMENT
Topic
Name
3+1 =