Issue checking for missing datetime value in series

后端 未结 1 638
别那么骄傲
别那么骄傲 2021-01-14 09:12

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

1条回答
  •  清酒与你
    2021-01-14 09:39

    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.

    0 讨论(0)
提交回复
热议问题