Aug-31-2022, 07:53 PM
(This post was last modified: Aug-31-2022, 07:53 PM by deanhystad.)
"time_period" is not a column in df. This is easy to test by printing "df" and looking at the columns. "time_period" will not be there. I don't know if this is because there is no time_period column, or if the string doesn't match ("time_period" does not match "time period" or "time_period ").
As far as I can tell, df.loc[df2['machine_status']==0]['time_period'] and df[df2['machine_status']==0]['time_period'] produce the same result.
As far as I can tell, df.loc[df2['machine_status']==0]['time_period'] and df[df2['machine_status']==0]['time_period'] produce the same result.