python pandas remove timezone from datetime code example Example: pandas remove timezone info testdata['time'].dt.tz_localize(None)