class_docstr: Base pairwise transformer for tabular or series data template class.
  
  The base pairwise transformer specifies the methods and method signatures that all
  pairwise transformers have to implement.
  
  Specific implementations of these methods is deferred to concrete classes.
class_docstr_tok: ["Base","pairwise","transformer","for","tabular","or","series","data","template","class",".","The","base","pairwise","transformer","specifies","the","methods","and","method","signatures","that","all","pairwise","transformers","have","to","implement",".","Specific","implementations","of","these","methods","is","deferred","to","concrete","classes","."]
docstr: Check and coerce input data.
  
  Method used to check the input and convert Table input
      to internally used format, as defined in X_inner_mtype tag
  
  Parameters
  ----------
  X: pd.DataFrame, pd.Series, numpy 1D or 2D, list of dicts
      sktime data container compliant with the Table scitype
      The value to be checked and coerced
  var_name: str, variable name to print in error messages
  
  Returns
  -------
  X: Panel data container of a supported format in X_inner_mtype
      usually a 2D np.ndarray or a pd.DataFrame, unless overridden
docstr_tok: ["Check","and","coerce","input","data",".","Method","used","to","check","the","input","and","convert","Table","input","to","internally","used","format",",","as","defined","in","X_inner_mtype","tag","Parameters","--","--","--","--","--","X",":","pd.DataFrame",",","pd.Series",",","numpy","1D","or","2D",",","list","of","dicts","sktime","data","container","compliant","with","the","Table","scitype","The","value","to","be","checked","and","coerced","var_name",":","str",",","variable","name","to","print","in","error","messages","Returns","--","--","--","-","X",":","Panel","data","container","of","a","supported","format","in","X_inner_mtype","usually","a","2D","np.ndarray","or","a","pd.DataFrame",",","unless","overridden"]
code: def _pairwise_table_x_check(self, X, var_name="X"):
      """Check and coerce input data.
  
      Method used to check the input and convert Table input
          to internally used format, as defined in X_inner_mtype tag
  
      Parameters
      ----------
      X: pd.DataFrame, pd.Series, numpy 1D or 2D, list of dicts
          sktime data container compliant with the Table scitype
          The value to be checked and coerced
      var_name: str, variable name to print in error messages
  
      Returns
      -------
      X: Panel data container of a supported format in X_inner_mtype
          usually a 2D np.ndarray or a pd.DataFrame, unless overridden
      """
      X_valid = check_is_scitype(
          X, "Table", return_metadata=False, var_name=var_name
      )
  
      if not X_valid:
          msg = (
              "X and X2 must be in an sktime compatible format, of scitype Table, "
              "for instance a pandas.DataFrame or a 2D numpy.ndarray. "
              "See the data format tutorial examples/AA_datatypes_and_datasets.ipynb"
          )
          raise TypeError(msg)
  
      X_inner_mtype = self.get_tag("X_inner_mtype")
      X_coerced = convert_to(
          X, to_type=X_inner_mtype, as_scitype="Table"
      )
  
      return X_coerced
  
imports: from sktime.base import BaseEstimator
  from sktime.datatypes import check_is_scitype, convert_to
  from sktime.datatypes._series_as_panel import convert_Series_to_Panel
label_desc: Use image node_id 6 for calling the BasePairwiseTransformer obj's underlying member method code with example usage: obj._pairwise_table_x_check(X, var_name) and returns: X_coerced