Skip to content

reset_index bug caused by DataAssembly constructor #18

Closed

Description

@jjpr-mit

DataAssembly.reset_index() does not work, because internally DataArray._replace() constructs a new object, and the DataAssembly constructor recreates the MultiIndexes.

Activity

  1. jjpr-mit commented on Mar 1, 2018

    @jjpr-mit
    Author

    Possibilities:

    • remove gather_indexes from constructor, make a factory method that is the same as the constructor but with gather_indexes
    • enforce inplace=True when calling reset_index()
  2. mschrimpf commented on Jul 16, 2019

    @mschrimpf
    Member

    out-dated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions