Skip to content Skip to sidebar Skip to footer

Issue Checking For Missing Datetime Value In Series

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 one of the

Solution 1:

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.

Post a Comment for "Issue Checking For Missing Datetime Value In Series"