Skip to content

Microsoft.Data.Analysis.DataFrame Join should produce a result with a single joined column #6133

Open

Description

@olavt

Given two DataFame objects it should be easy to perform a simple outer join to achieve these results:

DataFrame1:

Date ClosePrice
3/1/2022 12:00:00 AM 10.5
3/2/2022 12:00:00 AM 12.4
3/3/2022 12:00:00 AM 11.3

DataFrame2:

Date ShortPercent
3/1/2022 12:00:00 AM 2.34
3/2/2022 12:00:00 AM 2.36
3/3/2022 12:00:00 AM 3.01
3/4/2022 12:00:00 AM 3.04

Resulting DataFrame:

Date ClosePrice ShortPercent
3/1/2022 12:00:00 AM 10.5 2.34
3/2/2022 12:00:00 AM 12.4 2.36
3/3/2022 12:00:00 AM 11.3 3.01
3/4/2022 12:00:00 AM null 3.04

This does not seem to be possible with the current Merge or Join methods, since they end up with two columns for Date (Date_left and Date_right) in the resulting DataFrame and combining those to a single column seems complex and error prone.

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Mar 17, 2022
  2. added this to the ML.NET Future milestone on Mar 18, 2022
  3. michaelgsharp commented on Mar 18, 2022

    @michaelgsharp
    Contributor

    Thanks for pointing this out @olavt. This is the same issue that you and I were talking about right @luisquintanilla?

  4. luisquintanilla commented on Mar 21, 2022

    @luisquintanilla
    Contributor

    Thanks for pointing this out @olavt. This is the same issue that you and I were talking about right @luisquintanilla?

    Yup. That's right. Related to #6128.

  5. Nils12345678901234567 commented on Sep 5, 2024

    @Nils12345678901234567

    I would regard this as a bug, not an enhanment. The Merge and Join methods deos nor work as expected.

  6. superfamousdog commented on Dec 18, 2024

    @superfamousdog

    I am surprised that this bug is still open-- this is basic functionality. Implementing this would go a long way in enabling developers to use DataFrames in C#!

  7. added
    Priority:2Work that is important, but not critical for the release
    area-DataFrameMicrosoft.Data.Analysis DataFrame APIs
    and removed on Sep 8, 2026
  8. rosebyte commented on Sep 30, 2026

    @rosebyte
    Member

    Triage: it feels a meaningful request, any contribution welcomed.

  9. added
    help wanted[up-for-grabs] Good issue for external contributors
    on Sep 30, 2026
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

    Priority:2Work that is important, but not critical for the releasearea-DataFrameMicrosoft.Data.Analysis DataFrame APIsenhancementNew feature or requesthelp wanted[up-for-grabs] Good issue for external contributorsyellowmaintenance only

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions