Home > Software design >  Select string by time
Select string by time

Time:02-08

I have a Dataframe and i'd like to classify the rows by some periods of time in a day. I added a new column with the name: "turno" and this column was suposed to be classified in "NoiteAnterior", "Dia" and "Noite". I made a function to do this, but always comes the same classification, independent of the time. I need some help to know where i am been wrong. This is the function:

enter image description here

  •  Tags:  
  • Related