code: def temperature_data_from_json(data, orient="list"):
      
      if orient == "list":
          df = pd.DataFrame(data, columns=["dt", "tempF"])
          series = df.tempF
          series.index = pd.DatetimeIndex(df.dt).tz_localize("UTC")
          return series
      else:
          raise ValueError("orientation not recognized.")
docs: Load temperature data from json. (Must be given in degrees
      Fahrenheit).
  
      Default format::
  
          [
              ['2017-01-01T00:00:00+00:00', 3.5],
              ['2017-01-01T01:00:00+00:00', 5.4],
              ['2017-01-01T02:00:00+00:00', 7.4],
          ]
  
      Parameters
      ----------
      data : :any:`list`
          List elements are each a rows of data.
  
      Returns
      -------
      series : :any:`pandas.Series`
          DataFrame with a single column (``'tempF'``) and a
          :any:`pandas.DatetimeIndex`.