Skip to content

Add index, columns, origin, development alternatives to Triangle.drop() #1060

Description

@genedan

Description

index and columns parameters to Triangle.drop() are alternatives to specifying axis=0 and axis=1, respectively. We can extend this logic to having arguments origin and development be alternatives for axis=2 and axis=3, respectively.

Is your feature request aligned with the scope of the package?

  • Yes, absolutely!
  • No, but it's still worth discussing.
  • N/A (this request is not a codebase enhancement).

Describe the solution you'd like, or your current workaround.

  • Triangle.drop(index=['wkcomp', 'auto']) is equivalent to Triangle.drop(labels=['wkcomp', 'auto'], axis=0)
  • Triangle.drop(columns=['paid', 'incurred']) is equivalent to Triangle.drop(labels=['paid', 'incurred'], axis=1)
  • Triangle.drop(origin='1985') is equivalent to Triangle.drop(labels='1985', axis=2)
  • Triangle.drop(development='12') is equivalent to Triangle.drop(labels='12', axis=3)

Do you have any additional supporting notes?

No response

Would you be willing to contribute this ticket?

  • Yes, absolutely!
  • Yes, but I would like some help.
  • No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Great First Contribution! 🌱Beginner friendly tickets with narrow scope and huge impact. Perfect to get your feet wet!

    Fields

    Priority

    Low

    Effort

    Low

    Scope

    Codebase

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions