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
from statsmodels.datasets import grunfeld
data = sm.datasets.grunfeld.load_pandas().data
data = data.set_index(['firm', 'year'])
data.set_index(data.index).index.names
This is technically not valid according to the doc-string, as it accepts arrays which is sufficiently ambiguous, but 'works' with Series/ndarray (and index happens to be a ndarray subclass currently). So I think this could easily work; marking as an enhancement.
Index
MultiIndex
Version
The text was updated successfully, but these errors were encountered: