code: def meter_data_from_json(data, orient="list"):
      
      if orient == "list":
          df = pd.DataFrame(data, columns=["start", "value"])
          df["start"] = pd.DatetimeIndex(df.start).tz_localize("UTC")
          df = df.set_index("start")
          return df
      else:
          raise ValueError("orientation not recognized.")
docs: Load meter data from json.
  
      Default format::
  
          [
              ['2017-01-01T00:00:00+00:00', 3.5],
              ['2017-02-01T00:00:00+00:00', 0.4],
              ['2017-03-01T00:00:00+00:00', 0.46],
          ]
  
      Parameters
      ----------
      data : :any:`list`
          List elements are each a rows of data.
  
      Returns
      -------
      df : :any:`pandas.DataFrame`
          DataFrame with a single column (``'value'``) and a
          :any:`pandas.DatetimeIndex`.