diff --git a/README.rst b/README.rst
index 843f2ef..ff45460 100644
--- a/README.rst
+++ b/README.rst
@@ -94,7 +94,6 @@ membership::
     ...      data=[56, 283, 1279, 5882, 24, 90, 429, 1957]
     ... )
     >>> example  # doctest: +NORMALIZE_WHITESPACE
-                              0
     set0   set1   set2
     False  False  False      56
                   True      283
@@ -104,6 +103,7 @@ membership::
                   True       90
            True   False     429
                   True     1957
+    dtype: int64
 
 Installation
 ------------
diff --git a/upsetplot/data.py b/upsetplot/data.py
index 33aa4ac..f4a1825 100644
--- a/upsetplot/data.py
+++ b/upsetplot/data.py
@@ -1,4 +1,5 @@
 from __future__ import print_function, division, absolute_import
+from numbers import Number
 
 import pandas as pd
 import numpy as np
@@ -28,7 +29,7 @@ def from_memberships(memberships, data=None):
     memberships : sequence of collections of strings
         Each element corresponds to a data point, indicating the sets it is a
         member of.  Each set is named by a string.
-    data : Series or DataFrame-like, optional
+    data : Series-like or DataFrame-like, optional
         If given, the index of set memberships is attached to this data.
         It must have the same length as `memberships`.
         If not given, the series will contain the value 1.
@@ -37,6 +38,7 @@ def from_memberships(memberships, data=None):
     -------
     DataFrame or Series
         `data` is returned with its index indicating set membership.
+        It will be a Series if `data` is a Series or 1d numeric array.
         The index will have levels ordered by set names.
 
     Examples
@@ -85,6 +87,8 @@ def from_memberships(memberships, data=None):
 
     if hasattr(data, 'loc'):
         data = data.copy(deep=False)
+    elif len(data) and isinstance(data[0], Number):
+        data = pd.Series(data)
     else:
         data = pd.DataFrame(data)
     if len(data) != len(df):

ValuError sum_over must be False
Hi,
I am encountering a problem when trying to use upsetplot.
When I am running:
from upsetplot import from_memberships
example = from_memberships(
[[],
['set2'],
['set1'],
['set1', 'set2'],
['set0'],
['set0', 'set2'],
['set0', 'set1'],
['set0', 'set1', 'set2'],
],
data=[56,283,1279,5882,24,90,429,1957])

and then
from upsetplot import plot
plot(example) 

An error appears:
ValueError: sum_over must be False or a column name when a DataFrame is input

When running example = generate_data(aggregated=True), plotting is working fine.
Please let me know, what the issue might be.

Thank you,
Vendi

diff --git a/upsetplot/tests/test_data.py b/upsetplot/tests/test_data.py
index bc4ddda..f768f05 100644
--- a/upsetplot/tests/test_data.py
+++ b/upsetplot/tests/test_data.py
@@ -51,16 +51,16 @@ def test_from_memberships_no_data(typ):
     assert_series_equal(exp, out)
 
 
-@pytest.mark.parametrize('data', [
-    [1, 2, 3, 4],
-    np.array([1, 2, 3, 4]),
-    pd.Series([1, 2, 3, 4], name='foo'),
-    [[1, 'a'], [2, 'b'], [3, 'c'], [4, 'd']],
-    pd.DataFrame([[1, 'a'], [2, 'b'], [3, 'c'], [4, 'd']],
-                 columns=['foo', 'bar'],
-                 index=['q', 'r', 's', 't']),
+@pytest.mark.parametrize('data,ndim', [
+    ([1, 2, 3, 4], 1),
+    (np.array([1, 2, 3, 4]), 1),
+    (pd.Series([1, 2, 3, 4], name='foo'), 1),
+    ([[1, 'a'], [2, 'b'], [3, 'c'], [4, 'd']], 2),
+    (pd.DataFrame([[1, 'a'], [2, 'b'], [3, 'c'], [4, 'd']],
+                  columns=['foo', 'bar'],
+                  index=['q', 'r', 's', 't']), 2),
 ])
-def test_from_memberships_with_data(data):
+def test_from_memberships_with_data(data, ndim):
     memberships = [[],
                    ['hello'],
                    ['world'],
@@ -71,7 +71,7 @@ def test_from_memberships_with_data(data):
         # but not deepcopied when possible
         if LooseVersion(pd.__version__) > LooseVersion('0.35'):
             assert out.values.base is np.asarray(data).base
-    if isinstance(data, pd.Series):
+    if ndim == 1:
         assert isinstance(out, pd.Series)
     else:
         assert isinstance(out, pd.DataFrame)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.6
doc/requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
cycler==0.11.0
docutils==0.18.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==3.0.3
joblib==1.1.1
kiwisolver==1.3.1
MarkupSafe==2.0.1
matplotlib==3.3.4
numpy==1.19.5
numpydoc==1.1.0
packaging==21.3
pandas==1.1.5
Pillow==8.4.0
pluggy==1.0.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.27.1
scikit-learn==0.24.2
scipy==1.5.4
seaborn==0.11.2
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinx-gallery==0.10.0
sphinx-issues==3.0.1
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
threadpoolctl==3.1.0
tomli==1.2.3
typing_extensions==4.1.1
-e git+https://github.com/jnothman/UpSetPlot.git@825c8fa74283b18af11eed70938459fbfb248fcc#egg=UpSetPlot
urllib3==1.26.20
zipp==3.6.0

name: UpSetPlot
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:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - coverage==6.2
      - cycler==0.11.0
      - docutils==0.18.1
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - joblib==1.1.1
      - kiwisolver==1.3.1
      - markupsafe==2.0.1
      - matplotlib==3.3.4
      - numpy==1.19.5
      - numpydoc==1.1.0
      - packaging==21.3
      - pandas==1.1.5
      - pillow==8.4.0
      - pluggy==1.0.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.27.1
      - scikit-learn==0.24.2
      - scipy==1.5.4
      - seaborn==0.11.2
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinx-gallery==0.10.0
      - sphinx-issues==3.0.1
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - threadpoolctl==3.1.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - zipp==3.6.0
prefix: /opt/conda/envs/UpSetPlot

upsetplot/tests/test_data.py::test_from_memberships_with_data[data0-1] upsetplot/tests/test_data.py::test_from_memberships_with_data[data1-1]
upsetplot/tests/test_data.py::test_from_memberships_no_data[set] upsetplot/tests/test_data.py::test_from_memberships_no_data[list] upsetplot/tests/test_data.py::test_from_memberships_no_data[tuple] upsetplot/tests/test_data.py::test_from_memberships_no_data[iter] upsetplot/tests/test_data.py::test_from_memberships_with_data[data2-1] upsetplot/tests/test_data.py::test_from_memberships_with_data[data3-2] upsetplot/tests/test_data.py::test_from_memberships_with_data[data4-2]
README.rst upsetplot/data.py
README.rst upsetplot/data.py