diff --git a/cartoframes/layer.py b/cartoframes/layer.py
index f3173cb8..6ddaa641 100644
--- a/cartoframes/layer.py
+++ b/cartoframes/layer.py
@@ -408,7 +408,7 @@ class QueryLayer(AbstractLayer):
                 ]).format(col=self.color, query=self.orig_query)
                 agg_func = '\'CDB_Math_Mode(cf_value_{})\''.format(self.color)
                 self.scheme = {
-                    'bins': ','.join(str(i) for i in range(1, 11)),
+                    'bins': [str(i) for i in range(1, 11)],
                     'name': (self.scheme.get('name') if self.scheme
                              else 'Bold'),
                     'bin_method': '', }

extra conditional shows up in cartocss for category torque maps
It maybe happening in others...
diff --git a/test/test_layer.py b/test/test_layer.py
index 806afe2d..e24117b4 100644
--- a/test/test_layer.py
+++ b/test/test_layer.py
@@ -192,7 +192,7 @@ class TestQueryLayer(unittest.TestCase):
         ql._setup([BaseMap(), ql], 1)
         self.assertDictEqual(ql.scheme,
                              dict(name='Antique', bin_method='',
-                                  bins=','.join(str(i) for i in range(1, 11))))
+                                  bins=[str(i) for i in range(1, 11)]))
         # expect category maps query
         with open('qlayerquery.txt', 'w') as f:
             f.write(ql.query)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
appdirs==1.4.4
attrs==22.2.0
Babel==2.11.0
backcall==0.2.0
carto==1.11.3
-e git+https://github.com/CartoDB/cartoframes.git@6977ce422f9c1ac4e45f70d10438c36b34f52bd9#egg=cartoframes
certifi==2021.5.30
charset-normalizer==2.0.12
decorator==5.1.1
docutils==0.18.1
future==1.0.0
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
ipython==7.16.3
ipython-genutils==0.2.0
jedi==0.17.2
Jinja2==3.0.3
MarkupSafe==2.0.1
numpy==1.19.5
packaging==21.3
pandas==1.1.5
parso==0.7.1
pexpect==4.9.0
pickleshare==0.7.5
pluggy==1.0.0
pockets==0.9.1
prompt-toolkit==3.0.36
ptyprocess==0.7.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pyrestcli==0.6.11
pytest==7.0.1
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.27.1
Shapely==1.8.5.post1
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli==1.2.3
tqdm==4.64.1
traitlets==4.3.3
typing_extensions==4.1.1
urllib3==1.26.20
wcwidth==0.2.13
webcolors==1.7
zipp==3.6.0

name: cartoframes
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
      - appdirs==1.4.4
      - attrs==22.2.0
      - babel==2.11.0
      - backcall==0.2.0
      - carto==1.11.3
      - charset-normalizer==2.0.12
      - decorator==5.1.1
      - docutils==0.18.1
      - future==1.0.0
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - ipython==7.16.3
      - ipython-genutils==0.2.0
      - jedi==0.17.2
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - numpy==1.19.5
      - packaging==21.3
      - pandas==1.1.5
      - parso==0.7.1
      - pexpect==4.9.0
      - pickleshare==0.7.5
      - pluggy==1.0.0
      - pockets==0.9.1
      - prompt-toolkit==3.0.36
      - ptyprocess==0.7.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pyrestcli==0.6.11
      - pytest==7.0.1
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.27.1
      - shapely==1.8.5.post1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-napoleon==0.7
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - tomli==1.2.3
      - tqdm==4.64.1
      - traitlets==4.3.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - wcwidth==0.2.13
      - webcolors==1.7
      - zipp==3.6.0
prefix: /opt/conda/envs/cartoframes

test/test_layer.py::TestQueryLayer::test_querylayer_time_category
test/test_layer.py::TestAbstractLayer::test_class test/test_layer.py::TestLayer::test_layer_setup_dataframe test/test_layer.py::TestBaseMap::test_basemap_invalid test/test_layer.py::TestBaseMap::test_basemap_source test/test_layer.py::TestQueryLayer::test_querylayer_colors test/test_layer.py::TestQueryLayer::test_querylayer_get_cartocss test/test_layer.py::TestQueryLayer::test_querylayer_size_and_time test/test_layer.py::TestQueryLayer::test_querylayer_size_column_key test/test_layer.py::TestQueryLayer::test_querylayer_size_default test/test_layer.py::TestQueryLayer::test_querylayer_size_defaults test/test_layer.py::TestQueryLayer::test_querylayer_time_default test/test_layer.py::TestQueryLayer::test_querylayer_time_errors test/test_layer.py::TestQueryLayer::test_querylayer_time_numeric
cartoframes/layer.py
cartoframes/layer.py