Pandas version checks
test.csv
Reproducible Example
import pandas as pd
df = pd.read_csv('test.csv', header=[0,2], index_col=None)
print(df.columns)
Issue Description
MultiIndex([('h1', 'h3'),
('h2', 'h4')],
)
Why is there an empty output after ,?
Expected Behavior
A consistent output.
Installed Versions
Details
INSTALLED VERSIONS
commit : 72f2fea
python : 3.13.14
python-bits : 64
OS : Linux
OS-release : 6.18.33-calculate
Version : #1 SMP PREEMPT_DYNAMIC Tue Jun 9 10:00:56 UTC 2026
machine : x86_64
processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
byteorder : little
LC_ALL : None
LANG : ru_RU.UTF-8
LOCALE : ru_RU.UTF-8
pandas : 3.0.3
numpy : 2.5.1
dateutil : 2.9.0.post0
pip : 26.1.2
Cython : None
sphinx : None
IPython : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
bottleneck : None
fastparquet : None
fsspec : None
html5lib : None
hypothesis : None
gcsfs : None
jinja2 : None
lxml.etree : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.5
psycopg2 : None
pymysql : None
pyarrow : None
pyiceberg : None
pyreadstat : None
pytest : None
python-calamine : None
pytz : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlsxwriter : None
zstandard : None
qtpy : None
pyqt5 : None
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.
test.csv
Reproducible Example
Issue Description
Why is there an empty output after
,?Expected Behavior
A consistent output.
Installed Versions
Details
INSTALLED VERSIONS
commit : 72f2fea
python : 3.13.14
python-bits : 64
OS : Linux
OS-release : 6.18.33-calculate
Version : #1 SMP PREEMPT_DYNAMIC Tue Jun 9 10:00:56 UTC 2026
machine : x86_64
processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
byteorder : little
LC_ALL : None
LANG : ru_RU.UTF-8
LOCALE : ru_RU.UTF-8
pandas : 3.0.3
numpy : 2.5.1
dateutil : 2.9.0.post0
pip : 26.1.2
Cython : None
sphinx : None
IPython : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
bottleneck : None
fastparquet : None
fsspec : None
html5lib : None
hypothesis : None
gcsfs : None
jinja2 : None
lxml.etree : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.5
psycopg2 : None
pymysql : None
pyarrow : None
pyiceberg : None
pyreadstat : None
pytest : None
python-calamine : None
pytz : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlsxwriter : None
zstandard : None
qtpy : None
pyqt5 : None