Skip to content

Commit

Permalink
DOC: release notes. and rewrote _make_long_index
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Sep 5, 2011
1 parent c27e09c commit f970dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 5 additions & 1 deletion RELEASE.rst
Expand Up @@ -137,7 +137,7 @@ Release notes
`DataFrame.count` to enable this behavior in those methods if so desired
(disabled by default)
* `DataFrame.pivot` generalized to enable pivoting multiple columns into a
`WidePanel`
`DataFrame` with hierarhical columns
* `DataFrame` constructor can accept structured / record arrays
* `WidePanel` constructor can accept a dict of DataFrame-like objects. Do not
need to use `from_dict` anymore (`from_dict` is there to stay, though).
Expand Down Expand Up @@ -206,6 +206,10 @@ Release notes
* More Series deprecations / renaming: `toCSV` to `to_csv`, `asOf` to `asof`,
`merge` to `map`, `applymap` to `apply`, `toDict` to `to_dict`,
`combineFirst` to `combine_first`. Will print `FutureWarning`.
* `DataFrame.to_csv` does not write an "index" column label by default
anymore since the output file can be read back without it. However, there
is a new ``index_label`` argument. So you can do ``index_label='index'`` to
emulate the old behavior

**Bug fixes**

Expand Down
10 changes: 1 addition & 9 deletions pandas/core/panel.py
Expand Up @@ -1514,15 +1514,7 @@ def make_mask(index):
return mask

def _make_long_index(major_values, minor_values):
from pandas.core.index import unique_with_labels
major_values = np.asarray(major_values, dtype=object)
minor_values = np.asarray(minor_values, dtype=object)
major_axis, major_labels = unique_with_labels(major_values)
minor_axis, minor_labels = unique_with_labels(minor_values)

long_index = MultiIndex(levels=[major_axis, minor_axis],
labels=[major_labels, minor_labels])
return long_index
return MultiIndex.from_arrays([major_values, minor_values])

def _slow_pivot(index, columns, values):
"""
Expand Down

0 comments on commit f970dff

Please sign in to comment.