code: def test_pdp_df(precalculated_rf_regression_explainer):
      assert isinstance(
          precalculated_rf_regression_explainer.pdp_df("Age"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_rf_regression_explainer.pdp_df("Gender"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_rf_regression_explainer.pdp_df("Deck"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_rf_regression_explainer.pdp_df("Age", index=0),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_rf_regression_explainer.pdp_df(
              "Gender", index=0
          ),
          pd.DataFrame,
      )
  
imports: import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objects
label_desc: Use image node_id 27 for calling a global function with example usage: test_pdp_df(precalculated_rf_regression_explainer) without return types