-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
s=pd.Series([1])
s.info(show_counts=False)
Issue Description
Above code fails with
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Code\pandas_dev\pandas\pandas\core\series.py", line 5187, in info
return SeriesInfo(self, memory_usage).render(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 551, in render
printer.to_buffer(buf)
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 588, in to_buffer
lines = table_builder.get_lines()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 1028, in get_lines
self._fill_non_empty_info()
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 1082, in _fill_non_empty_info
self.add_body_lines()
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 925, in add_body_lines
[
File "C:\Code\pandas_dev\pandas\pandas\io\formats\info.py", line 925, in <listcomp>
[
ValueError: zip() argument 2 is shorter than argument 1
Expected Behavior
No error
Installed Versions
INSTALLED VERSIONS
commit : bb10b27
python : 3.11.13
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.26100
machine : AMD64
processor : Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_United States.1252
pandas : 3.0.0.dev0+2306.gbb10b27dea.dirty
numpy : 2.2.6
dateutil : 2.9.0.post0
pip : 25.2
Cython : 3.1.3
sphinx : 8.3.0
IPython : 9.5.0
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.14.0
bottleneck : 1.6.0
fastparquet : 2024.11.0
fsspec : 2025.9.0
html5lib : 1.1
hypothesis : 6.138.15
gcsfs : 2025.9.0
jinja2 : 3.1.6
lxml.etree : 6.0.1
matplotlib : 3.10.6
numba : 0.61.2
numexpr : 2.10.2
odfpy : None
openpyxl : 3.1.5
psycopg2 : 2.9.10
pymysql : 1.4.6
pyarrow : 19.0.1
pyiceberg : 0.9.1
pyreadstat : 1.3.1
pytest : 8.4.2
python-calamine : None
pytz : 2025.2
pyxlsb : 1.0.10
s3fs : 2025.9.0
scipy : 1.16.1
sqlalchemy : 2.0.43
tables : 3.10.2
tabulate : 0.9.0
xarray : 2025.9.0
xlrd : 2.0.2
xlsxwriter : 3.2.5
zstandard : 0.24.0
qtpy : None
pyqt5 : None