code: def test_logreg_pdp_df(precalculated_logistic_regression_explainer):
      assert isinstance(
          precalculated_logistic_regression_explainer.pdp_df("Age"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_logistic_regression_explainer.pdp_df("Gender"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_logistic_regression_explainer.pdp_df("Deck"),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_logistic_regression_explainer.pdp_df(
              "Age", index=0
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_logistic_regression_explainer.pdp_df(
              "Gender", index=0
          ),
          pd.DataFrame,
      )
  
imports: import pytest
  import pandas
  import numpy
  import shap
  import plotly.graph_objects
label_desc: Use image node_id 29 for calling a global function with example usage: test_logreg_pdp_df(precalculated_logistic_regression_explainer) without return types