class_docstr: Abstract base class for time series panel tasks, e.g., classifiers, regressors.
  
  The class contains boilerplate for checks and data conversions,
  which are common to multiple descendants, most importantly,
  BaseClassifier and BaseRegressor.
docstr: Convert equal length series from DataFrame to numpy array or vice versa.
  
  Parameters
  ----------
  X : input data for the estimator, any Panel mtype
  X_mtype : str, a Panel mtype string, e.g., "pd_multiindex", "numpy3D"
  
  Returns
  -------
  X : input X converted to type in "X_inner_mtype" tag
      usually a pd.DataFrame (nested) or 3D np.ndarray
      Checked and possibly converted input data
docstr_tok: ["Convert","equal","length","series","from","DataFrame","to","numpy","array","or","vice","versa",".","Parameters","--","--","--","--","--","X",":","input","data","for","the","estimator",",","any","Panel","mtype","X_mtype",":","str",",","a","Panel","mtype","string",",","e.g.",",","``","pd_multiindex","''",",","``","numpy3D","''","Returns","--","--","--","-","X",":","input","X","converted","to","type","in","``","X_inner_mtype","''","tag","usually","a","pd.DataFrame","(","nested",")","or","3D","np.ndarray","Checked","and","possibly","converted","input","data"]
code: def _convert_X(self, X, X_mtype):
      """Convert equal length series from DataFrame to numpy array or vice versa.
  
      Parameters
      ----------
      X : input data for the estimator, any Panel mtype
      X_mtype : str, a Panel mtype string, e.g., "pd_multiindex", "numpy3D"
  
      Returns
      -------
      X : input X converted to type in "X_inner_mtype" tag
          usually a pd.DataFrame (nested) or 3D np.ndarray
          Checked and possibly converted input data
      """
      inner_type = self.get_tag("X_inner_mtype")
      # convert pd.DataFrame
      X = convert(
          X,
          from_type=X_mtype,
          to_type=inner_type,
          as_scitype="Panel",
      )
      return X
  
file_path: sktime/sktime/base/_base_panel.py
imports: import numpy
  import pandas
  from sktime.base import BaseEstimator
  from sktime.datatypes import MTYPE_LIST_PANEL, MTYPE_LIST_TABLE, VectorizedDF, check_is_error_msg, check_is_scitype, convert
  from sktime.utils.warnings import warn
label_desc: Use image node_id 5 for calling the BasePanelMixin obj's underlying member method code with example usage: obj._convert_X(X, X_mtype) and returns: X