diff --git a/dimod/sampleset.py b/dimod/sampleset.py
index 9b5dc365..41ff5c1c 100644
--- a/dimod/sampleset.py
+++ b/dimod/sampleset.py
@@ -770,6 +770,37 @@ class SampleSet(Iterable, Sized):
         from dimod.io.json import sampleset_decode_hook
         return sampleset_decode_hook(obj, cls=cls)
 
+    ###############################################################################################
+    # Export to dataframe
+    ###############################################################################################
+
+    def to_pandas_dataframe(self):
+        """Convert a SampleSet to a Pandas DataFrame
+
+        Returns:
+            :obj:`pandas.DataFrame`
+
+        Examples:
+            >>> samples = dimod.SampleSet.from_samples([{'a': -1, 'b': +1, 'c': -1},
+                                                        {'a': -1, 'b': -1, 'c': +1}],
+                                                       dimod.SPIN, energy=-.5)
+            >>> samples.to_pandas_dataframe()
+               a  b  c  energy  num_occurrences
+            0 -1  1 -1    -0.5                1
+            1 -1 -1  1    -0.5                1
+
+        """
+        import pandas as pd
+
+        df = pd.DataFrame(self.record.sample, columns=self.variables)
+        for field in sorted(self.record.dtype.fields):  # sort for consistency
+            if field == 'sample':
+                continue
+
+            df.loc[:, field] = self.record[field]
+
+        return df
+
 
 def _samples_dicts_to_array(samples_dicts):
     """Convert an iterable of samples where each sample is a dict to a numpy 2d array. Also

Export SampleSet object to Pandas df
**Application**
It would be useful for Pandas users to be able to export the `SampleSet`/`Response` objects into a pandas dataframe.

**Proposed Solution**
```
samples = dimod.ExactSolver().sample_ising(h, J)
df = samples.to_pandas_dataframe()
```

diff --git a/tests/test_sampleset.py b/tests/test_sampleset.py
index bf2d23af..9ce1a7e5 100644
--- a/tests/test_sampleset.py
+++ b/tests/test_sampleset.py
@@ -21,6 +21,13 @@ import numpy as np
 import dimod
 
 
+try:
+    import pandas as pd
+    _pandas = True
+except ImportError:
+    _pandas = False
+
+
 class TestSampleSet(unittest.TestCase):
     def test_from_samples(self):
 
@@ -158,3 +165,16 @@ class TestSampleSetSerialization(unittest.TestCase):
         s = json.dumps(samples.to_serializable())
         new_samples = dimod.SampleSet.from_serializable(json.loads(s))
         self.assertEqual(samples, new_samples)
+
+
+@unittest.skipUnless(_pandas, "no pandas present")
+class TestSampleSet_to_pandas_dataframe(unittest.TestCase):
+    def test_simple(self):
+        samples = dimod.SampleSet.from_samples(([[-1, 1, -1], [-1, -1, 1]], 'abc'),
+                                               dimod.SPIN, energy=[-.5, .5])
+        df = samples.to_pandas_dataframe()
+
+        other = pd.DataFrame([[-1, 1, -1, -.5, 1], [-1, -1, 1, .5, 1]],
+                             columns=['a', 'b', 'c', 'energy', 'num_occurrences'])
+
+        pd.testing.assert_frame_equal(df, other, check_dtype=False)

pip install -e .[all]
parse_log_pytest
requirements.txt
pytest coverage
apt-get update apt-get install -y gcc libboost-dev
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
codecov==2.1.13
coverage==6.2
Cython==3.0.12
decorator==5.1.1
-e git+https://github.com/dwavesystems/dimod.git@54a79d8ad74234aac298d41531c76f73ee607b1b#egg=dimod
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
jsonschema==2.6.0
mock==2.0.0
networkx==2.0
numpy==1.15.0
packaging==21.3
pandas==0.22.0
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pymongo==3.7.1
pyparsing==3.1.4
pytest==7.0.1
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.27.1
six==1.11.0
tomli==1.2.3
typing_extensions==4.1.1
urllib3==1.26.20
zipp==3.6.0

name: dimod
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - charset-normalizer==2.0.12
      - codecov==2.1.13
      - coverage==6.2
      - cython==3.0.12
      - decorator==5.1.1
      - idna==3.10
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jsonschema==2.6.0
      - mock==2.0.0
      - networkx==2.0
      - numpy==1.15.0
      - packaging==21.3
      - pandas==0.22.0
      - pbr==6.1.1
      - pluggy==1.0.0
      - py==1.11.0
      - pymongo==3.7.1
      - pyparsing==3.1.4
      - pytest==7.0.1
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.27.1
      - six==1.11.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - zipp==3.6.0
prefix: /opt/conda/envs/dimod

tests/test_sampleset.py::TestSampleSet_to_pandas_dataframe::test_simple
tests/test_sampleset.py::TestSampleSet::test_eq_ordered tests/test_sampleset.py::TestSampleSet::test_from_samples tests/test_sampleset.py::TestSampleSet::test_from_samples_empty tests/test_sampleset.py::TestSampleSet::test_from_samples_fields_multiple tests/test_sampleset.py::TestSampleSet::test_from_samples_fields_single tests/test_sampleset.py::TestSampleSet::test_from_samples_iterator tests/test_sampleset.py::TestSampleSet::test_from_samples_single_sample tests/test_sampleset.py::TestSampleSet::test_from_samples_str_labels tests/test_sampleset.py::TestSampleSet::test_mismatched_shapes tests/test_sampleset.py::TestSampleSet::test_shorter_samples tests/test_sampleset.py::TestSampleSetSerialization::test_functional_json tests/test_sampleset.py::TestSampleSetSerialization::test_functional_simple_shapes tests/test_sampleset.py::TestSampleSetSerialization::test_functional_str
dimod/sampleset.py
dimod/sampleset.py