class_docstr: A class to convert sampler output arrays to their original types.
class_docstr_tok: ["A","class","to","convert","sampler","output","arrays","to","their","original","types","."]
code: def _transfrom_one(self, array, props):
      type_ = props["type"].lower()
      if type_ == "list":
          ret = array.tolist()
      elif type_ == "dataframe":
          import pandas as pd
  
          ret = pd.DataFrame(array, columns=props["columns"])
          ret = ret.astype(props["dtypes"])
      elif type_ == "series":
          import pandas as pd
  
          ret = pd.Series(
              array, dtype=props["dtypes"], name=props["name"]
          )
      else:
          ret = array
      return ret
  
imports: import warnings
  from collections import OrderedDict
  from functools import wraps
  from inspect import Parameter, signature
  from numbers import Real
  from typing import Any, Dict
  import numpy
  from sklearn.utils import column_or_1d
  from sklearn.utils.multiclass import type_of_target
label_desc: Use image node_id 4 for calling the ArraysTransformer obj's underlying member method code with example usage: obj._transfrom_one(array, props) and returns: ret