-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduction of RangeIndex #9977
Closed
Closed
Commits on Apr 24, 2015
-
`RangeIndex(1, 10, 2)` is a memory saving alternative to `Index(np.arange(1, 10,2))`: c.f. #939. This re-implementation is compatible with the current `Index()` api and is a drop-in replacement for `Int64Index()`. It automatically converts to Int64Index() when required by operations. At present only for a minimum number of operations the type is conserved (e.g. slicing, inner-, left- and right-joins). Most other operations trigger creation of an equivalent Int64Index (or at least an equivalent numpy array) and fall back to its implementation. This PR also extends the functionality of the `Index()` constructor to allow creation of `RangeIndexes()` with ``` Index(20) Index(2, 20) Index(0, 20, 2) ``` in analogy to ``` range(20) range(2, 20) range(0, 20, 2) ```
ARF committedApr 24, 2015 Configuration menu - View commit details
-
Copy full SHA for 991c684 - Browse repository at this point
Copy the full SHA 991c684View commit details -
restore Index() fastpath precedence
ARF committedApr 24, 2015 Configuration menu - View commit details
-
Copy full SHA for 872775d - Browse repository at this point
Copy the full SHA 872775dView commit details
Commits on Apr 27, 2015
-
Various fixes suggested by @jreback and @shoyer
Cache a private Int64Index object the first time it or its values are required. Restore Index(5) as error. Restore its test. Allow Index(0, 5) and Index(0, 5, 1). Make RangeIndex immutable. See start, stop, step properties. In test_constructor(): check class, attributes (possibly including dtype). In test_copy(): check that copy is not identical (but equal) to the existing. In test_duplicates(): Assert is_unique and has_duplicates return correct values.
ARF committedApr 27, 2015 Configuration menu - View commit details
-
Copy full SHA for 57e0865 - Browse repository at this point
Copy the full SHA 57e0865View commit details
Commits on May 1, 2015
-
ARF committed
May 1, 2015 Configuration menu - View commit details
-
Copy full SHA for e8c31c5 - Browse repository at this point
Copy the full SHA e8c31c5View commit details -
Set RangeIndex as default index
* enh: set RangeIndex as default index * fix: pandas.io.packers: encode() and decode() for RangeIndex * enh: array argument pass-through * fix: reindex * fix: use _default_index() in pandas.core.frame.extract_index() * fix: pandas.core.index.Index._is() * fix: add RangeIndex to ABCIndexClass * fix: use _default_index() in _get_names_from_index() * fix: pytables tests * fix: MultiIndex.get_level_values() * fix: RangeIndex._shallow_copy() * fix: null-size RangeIndex equals() comparison * enh: make RangeIndex.is_unique immutable
ARF committedMay 1, 2015 Configuration menu - View commit details
-
Copy full SHA for ac18a31 - Browse repository at this point
Copy the full SHA ac18a31View commit details
Commits on May 2, 2015
-
ARF committed
May 2, 2015 Configuration menu - View commit details
-
Copy full SHA for b4d1085 - Browse repository at this point
Copy the full SHA b4d1085View commit details -
enh: various performance optimizations
* optimize argsort() * optimize tolist() * comment clean-up
ARF committedMay 2, 2015 Configuration menu - View commit details
-
Copy full SHA for c9ac12f - Browse repository at this point
Copy the full SHA c9ac12fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.