Skip to content

Commit f9ebeae

Browse files
committed
change impl details slightly for #14292
1 parent 16b64f1 commit f9ebeae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/source/whatsnew/v0.19.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Performance Improvements
3030

3131
Bug Fixes
3232
~~~~~~~~~
33-
- Bug in ``concat`` where names of keys were not propagated to the resulting MultiIndex (:issue:`14252`)
33+
- Bug in ``pd.concat`` where names of the ``keys`` were not propagated to the resulting ``MultiIndex`` (:issue:`14252`)

pandas/tools/merge.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,7 @@ def __init__(self, objs, axis=0, join='outer', join_axes=None,
13701370
clean_objs.append(v)
13711371
objs = clean_objs
13721372
name = getattr(keys, 'name', None)
1373-
keys = Index(clean_keys)
1374-
keys.name = name
1373+
keys = Index(clean_keys, name=name)
13751374

13761375
if len(objs) == 0:
13771376
raise ValueError('All objects passed were None')

0 commit comments

Comments
 (0)