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
ak.Index constructor is bare bones and needs to be made more robust. Additionally, there is functionality within pandas.Index that we should add in order to provide more flexibility with functionality. This will make interactions with other objects, specifically ak.DataFrame more streamline.
Update __init__ to allow for more types. Currently, we can really only init with a pdarray.
Add error handling
init properties that are missing when compared to Pandas.
Currently, Index.index returns the underlying pdarray, pandas.Index.values does this. We should probably support both (at least for a limited time).
Add functionality supported by pandas.Index
The text was updated successfully, but these errors were encountered:
@reuster986 - Should ak.Index.to_pandas() return a pandas.Index object? Currently, it returns the underlying pdarray as an an ndarray via self.index.to_ndarray. I would think that we would want this to function as it does with ak.DataFrame to return the equivalent pandas object. However, I did not want to update it if this will break anything you are doing elsewhere.
* Configured ak.Index existing feature to work more in line with pandas where needed. Namely, the __init and __getitem__ functions."
Updated to_pandas() to return pd.Index and added to_ndarray to maintain the current functionality.
Updated tests to properly utilize ak.Index objects.
* Updated typing information for mypy
* Updating from PR comments.
ak.Index
constructor is bare bones and needs to be made more robust. Additionally, there is functionality withinpandas.Index
that we should add in order to provide more flexibility with functionality. This will make interactions with other objects, specificallyak.DataFrame
more streamline.__init__
to allow for more types. Currently, we can really only init with apdarray
.Index.index
returns the underlying pdarray,pandas.Index.values
does this. We should probably support both (at least for a limited time).pandas.Index
The text was updated successfully, but these errors were encountered: