Jun-28-2021, 06:49 AM
I found the solution:
# write data in column 'Comment', only for certain rows creates KeyError df.loc[(df['Date_Time'] >= '2021-06-10 09:50:31')&(df['Date_Time'] < '2021-06-10 09:51:00'),'Comment']="zero" df