Skip to content
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

API: Public data for Series and Index: .array and .to_numpy() #23623

Merged
merged 28 commits into from
Nov 29, 2018

Commits on Nov 6, 2018

  1. API: Public data attributes for EA-backed containers

    This adds two new methods for working with EA-backed Series / Index.
    
    - `.array -> Union[ExtensionArray, ndarray]`: the actual backing array
    - `.to_numpy() -> ndarray`: A NumPy representation of the data
    
    `.array` is always a reference to the actual data stored in the container.
    Updating it inplace (not recommended) will be reflected in the Series (or
    Index for that matter, so really not recommended).
    
    `to_numpy()` may (or may not) require data copying / coercion.
    
    Closes pandas-dev#19954
    TomAugspurger committed Nov 6, 2018
    Configuration menu
    Copy the full SHA
    7959eb6 View commit details
    Browse the repository at this point in the history
  2. update

    TomAugspurger committed Nov 6, 2018
    Configuration menu
    Copy the full SHA
    5b15894 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2018

  1. Configuration menu
    Copy the full SHA
    4781a36 View commit details
    Browse the repository at this point in the history
  2. more notes

    TomAugspurger committed Nov 11, 2018
    Configuration menu
    Copy the full SHA
    15cc0b7 View commit details
    Browse the repository at this point in the history
  3. update

    TomAugspurger committed Nov 11, 2018
    Configuration menu
    Copy the full SHA
    888853f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2cfca30 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2018

  1. Configuration menu
    Copy the full SHA
    3e76f02 View commit details
    Browse the repository at this point in the history
  2. Squashed commit of the following:

    commit e4b21f6
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Mon Nov 12 16:09:58 2018 -0600
    
        TST: Change rops tests
    
    commit e903550
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Mon Nov 12 09:31:38 2018 -0600
    
        Add note
    
        [ci skip]
    
        ***NO CI***
    
    commit fa8934a
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Mon Nov 12 06:16:53 2018 -0600
    
        update errors
    
    commit 505970e
    Merge: a30bc02 3592a46
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Mon Nov 12 05:55:31 2018 -0600
    
        Merge remote-tracking branch 'upstream/master' into index-ndarray-data
    
    commit a30bc02
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Sun Nov 11 15:14:46 2018 -0600
    
        remove assert
    
    commit 1f23ebc
    Author: Tom Augspurger <tom.w.augspurger@gmail.com>
    Date:   Sun Nov 11 15:01:13 2018 -0600
    
        BUG: Ensure that Index._data is an ndarray
    
        BUG: Ensure that Index._data is an ndarray
    
        Split from pandas-dev#23623, where it was
        causing issues with infer_dtype.
    TomAugspurger committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    7e43cf0 View commit details
    Browse the repository at this point in the history
  3. DOC: updated docs

    TomAugspurger committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    bceb612 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2018

  1. Configuration menu
    Copy the full SHA
    c19c9bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe813ff View commit details
    Browse the repository at this point in the history
  3. clean

    TomAugspurger committed Nov 17, 2018
    Configuration menu
    Copy the full SHA
    8619790 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2018

  1. Configuration menu
    Copy the full SHA
    639b6fb View commit details
    Browse the repository at this point in the history
  2. doc update

    TomAugspurger committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    95f19bc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3292e43 View commit details
    Browse the repository at this point in the history
  4. update

    TomAugspurger committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    5a905ab View commit details
    Browse the repository at this point in the history
  5. fixed doctest

    TomAugspurger committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    1e6eed4 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2018

  1. Configuration menu
    Copy the full SHA
    4545d93 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2018

  1. Configuration menu
    Copy the full SHA
    2d7abb4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7a13a0 View commit details
    Browse the repository at this point in the history
  3. update docs

    TomAugspurger committed Nov 27, 2018
    Configuration menu
    Copy the full SHA
    c0a63c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2018

  1. Fixup for feedback

    TomAugspurger committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    661b9eb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52f5407 View commit details
    Browse the repository at this point in the history
  3. skip only on index box

    TomAugspurger committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    566a027 View commit details
    Browse the repository at this point in the history
  4. Series.values

    TomAugspurger committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    062c49f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    78e5824 View commit details
    Browse the repository at this point in the history
  6. remove stale todo

    TomAugspurger committed Nov 28, 2018
    Configuration menu
    Copy the full SHA
    e805c26 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2018

  1. Configuration menu
    Copy the full SHA
    f9eee65 View commit details
    Browse the repository at this point in the history