def naive_to_utc(ts):
 return pd.Timestamp(ts.to_pydatetime(warn=False), tz='UTC')

def naive_to_utc ( ts ) : return pd . Timestamp ( ts . to_pydatetime ( warn = False ) , tz = 'UTC' )
converts a utc tz-naive timestamp to a tz-aware timestamp .