df = pd.DataFrame({'foo': [1, 2, 3, 4],
'bar': [0.1, 0.2, 0.3, 0.4]})
index = pd.Index(['a', 'b'], name='baz')
concatted = pd.concat([df, df], keys=index)
concatted.index.names
## -- End pasted text --
Out[3]: FrozenList([None, None])
Expected Output
FrozenList(['baz', None])
output of pd.show_versions()
A few days older than master:
commit: 5e2f9da6e8e713bd89cfe8760e63583ea7d29879
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4