code: def from_df(cls, df):
          
          t = cls()
          labels = df.columns
          for label in df.columns:
              t.append_column(label, df[label])
          return t
docs: Convert a Pandas DataFrame into a Table.