I\'m trying to create a derived column based on two conditions being met for values in existing columns. One of the conditions that needs to be met is that that value for on
I was running into a similar problem. This worked for me:
instead of using:
(sample_df['line_start_time'].isnull())
use:
(sample_df['line_start_time'] is pd.NaT)
hopefully that at least gets rid of your current error.