code: def to_dataframe(ticks: list) -> pd.DataFrame:
      """Convert list to Series compatible with the library."""
  
      df = pd.DataFrame(ticks)
      df["time"] = pd.to_datetime(df["time"], unit="s")
      df.set_index("time", inplace=True)
  
      return df
  
imports: import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: to_dataframe(ticks) and returns: df