use Pandas timestamp instead of datetime timestamp
use Pandas timestamp instead of datetime timestamp

While the pandas dataframe seems to be in UTC (my inspector shows 'Z'  for zulu timezone, =UTC), Using datetime.datetime.timestamp seems to interpret the time as the local time. This results in different outputs depending on your local timezone (clearly visible in the ' Time of Day signal plot' ).

Using the pandas equivalent function works uniformly independent from local environment.
tensorflow/docs,tensorflow/docs,tensorflow/docs