Skip to content

ENH: Reimplement and undeprecate DataFrame.lookup #39171

Closed
@impredicative

Description

@impredicative

Is your feature request related to a problem?

I seriously get the impression that Pandas is actively being sabotaged. As a case in point, DataFrame.lookup was deprecated in v1.2. The problems with this are:

  1. The doc for DataFrame.lookup says to see itself for an example. Well, there is no example in the doc page. The only example I'm aware of is here instead which is a different page.
  2. The changelog for this deprecation points to GH18682 which looks to be wholly irrelevant to this change. A lot has gone wrong here.
  3. There is significant user code that already uses lookup. Why break it? If the current implementation of lookup is suboptimal, shouldn't it be optimized instead?
  4. It is extremely complicated to use melt when lookup works quite simply. For example, compare this simple answer using lookup with this complicated answer using melt.

Does nobody review changes, docs, and release notes anymore prior to the release? It looks this way.

Describe the solution you'd like

  1. Optimize lookup if attainable using melt or otherwise.
  2. Undeprecate lookup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions