You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When concatenating two dataframes with the same column level name ('n' in the case above), it is expected to find the same level name after the concatenation, i.e. on df1. This is not the case. If the columns are not str, as in df2, the behaviour is as expected. If this is not the expected behaviour, the two results should at least agree.
Expected Output
df1.columns.name == df2.columns.name
Output of pd.show_versions()
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
Yes, looks like it is. The only addition here is that it does not happen with non-str, but this can be closed as solving that issue should also solve this. Thanks!
Code Sample
Problem description
When concatenating two dataframes with the same column level name (
'n'
in the case above), it is expected to find the same level name after the concatenation, i.e. ondf1
. This is not the case. If the columns are notstr
, as indf2
, the behaviour is as expected. If this is not the expected behaviour, the two results should at least agree.Expected Output
Output of
pd.show_versions()
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.1.1
setuptools: 41.0.1
Cython: None
numpy: 1.17.0rc1
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: