Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe how to substruct 2 dates

df_test['Difference'] = (df_test['First_Date'] - df_test['Second Date']).dt.days
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #substruct #dates
ADD COMMENT
Topic
Name
3+1 =