code: def df(self):
      return DataFrame(
          {
              "a": list("abcd"),
              "b": list(range(1, 5)),
              "c": np.arange(3, 7).astype("u1"),
              "d": np.arange(4.0, 8.0, dtype="float64"),
              "e": [True, False, True, False],
              "f": Categorical(list("abcd")),
              "g": date_range("20130101", periods=4),
              "h": date_range("20130101", periods=4, tz="US/Eastern"),
          }
      )
  
file_path: pandas/pandas/tests/generic/test_to_xarray.py
imports: import numpy
  import pytest
  from pandas import Categorical, DataFrame, MultiIndex, Series, date_range
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestDataFrameToXArray obj's underlying member method code with example usage: obj.df() and returns: DataFrame