human
Pandas datetime column to ordinal
assistant
Here is some code to convert  DateTime column 'date' of pandas dataframe 'df' to ordinal

df['date'].apply(lambda x: x.toordinal())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.