Issue checking for missing datetime value in series

后端 未结 1 643
别那么骄傲
别那么骄傲 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)
提交回复
热议问题