docstr: param dt_col: same as tsdata.from_pandas.
  param target_col: same as tsdata.from_pandas.
  param extra_feature: same as tsdata.from_pandas.
  param id_col: same as tsdata.from_pandas.
  return tsdata.
docstr_tok: ["param","dt_col",":","same","as","tsdata.from_pandas",".","param","target_col",":","same","as","tsdata.from_pandas",".","param","extra_feature",":","same","as","tsdata.from_pandas",".","param","id_col",":","same","as","tsdata.from_pandas",".","return","tsdata","."]
code: def get_tsdata(
      self, dt_col, target_col, extra_feature=None, id_col=None
  ):
      """
      param dt_col: same as tsdata.from_pandas.
      param target_col: same as tsdata.from_pandas.
      param extra_feature: same as tsdata.from_pandas.
      param id_col: same as tsdata.from_pandas.
      return tsdata.
      """
      if self.with_split:
          return TSDataset.from_pandas(
              self.df,
              dt_col=dt_col,
              target_col=target_col,
              extra_feature_col=extra_feature,
              id_col=id_col,
              with_split=self.with_split,
              val_ratio=self.val_ratio,
              test_ratio=self.test_ratio,
          )
      else:
          return TSDataset.from_pandas(
              self.df,
              dt_col=dt_col,
              target_col=target_col,
              extra_feature_col=extra_feature,
              id_col=id_col,
          )
  
file_path: analytics-zoo/pyzoo/zoo/chronos/data/utils/public_dataset.py
imports: import os
  import requests
  import tqdm
  import pandas
  from zoo.chronos.data.tsdataset import TSDataset
label_desc: Use image node_id 7 for calling the PublicDataset obj's underlying member method code with example usage: obj.get_tsdata(dt_col, target_col, extra_feature, id_col) and returns: TSDataset, TSDataset